[#9034] Turn off autosuggestion on seedphrase confirmation input
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
parent
54a3e64c2e
commit
6a732570c7
|
@ -14,7 +14,10 @@
|
||||||
(dissoc merged-styles :background-color)
|
(dissoc merged-styles :background-color)
|
||||||
merged-styles)))
|
merged-styles)))
|
||||||
|
|
||||||
(defn text-input-with-label [{:keys [label content error style height container text editable] :as props :or {editable true}}]
|
(defn text-input-with-label
|
||||||
|
[{:keys [label content error style height container text editable keyboard-type]
|
||||||
|
:as props
|
||||||
|
:or {editable true}}]
|
||||||
[react/view
|
[react/view
|
||||||
(when label
|
(when label
|
||||||
[react/text {:style (styles/label editable)}
|
[react/text {:style (styles/label editable)}
|
||||||
|
@ -26,7 +29,10 @@
|
||||||
:placeholder-text-color colors/gray
|
:placeholder-text-color colors/gray
|
||||||
:auto-focus true
|
:auto-focus true
|
||||||
:auto-capitalize :none}
|
:auto-capitalize :none}
|
||||||
(dissoc props :style :height)
|
(cond-> (dissoc props :style :height)
|
||||||
|
;; error on ios
|
||||||
|
(and platform/ios? (= keyboard-type "visible-password"))
|
||||||
|
(dissoc :keyboard-type))
|
||||||
;; Workaround until `value` TextInput field is available on desktop:
|
;; Workaround until `value` TextInput field is available on desktop:
|
||||||
;; https://github.com/status-im/react-native-desktop/issues/320
|
;; https://github.com/status-im/react-native-desktop/issues/320
|
||||||
(when-not platform/desktop?
|
(when-not platform/desktop?
|
||||||
|
|
|
@ -89,6 +89,8 @@
|
||||||
{:placeholder (i18n/label :t/enter-word)
|
{:placeholder (i18n/label :t/enter-word)
|
||||||
:ref (partial reset! ref)
|
:ref (partial reset! ref)
|
||||||
:auto-focus true
|
:auto-focus true
|
||||||
|
:auto-correct false
|
||||||
|
:keyboard-type "visible-password"
|
||||||
:on-change-text #(re-frame/dispatch [:set-in [:my-profile/seed :word] %])
|
:on-change-text #(re-frame/dispatch [:set-in [:my-profile/seed :word] %])
|
||||||
:on-submit-editing next-handler
|
:on-submit-editing next-handler
|
||||||
:error error}]))
|
:error error}]))
|
||||||
|
|
Loading…
Reference in New Issue