[#9034] Turn off autosuggestion on seedphrase confirmation input

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
Andrey Shovkoplyas 2019-09-26 14:39:50 +02:00
parent 54a3e64c2e
commit 6a732570c7
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
2 changed files with 10 additions and 2 deletions

View File

@ -14,7 +14,10 @@
(dissoc merged-styles :background-color)
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
(when label
[react/text {:style (styles/label editable)}
@ -26,7 +29,10 @@
:placeholder-text-color colors/gray
:auto-focus true
: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:
;; https://github.com/status-im/react-native-desktop/issues/320
(when-not platform/desktop?

View File

@ -89,6 +89,8 @@
{:placeholder (i18n/label :t/enter-word)
:ref (partial reset! ref)
:auto-focus true
:auto-correct false
:keyboard-type "visible-password"
:on-change-text #(re-frame/dispatch [:set-in [:my-profile/seed :word] %])
:on-submit-editing next-handler
:error error}]))