Skip to content

Commit

Permalink
[#9034] Turn off autosuggestion on seedphrase confirmation input
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
  • Loading branch information
flexsurfer committed Sep 30, 2019
1 parent 54a3e64 commit 6a73257
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/status_im/ui/components/text_input/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
Expand All @@ -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?
Expand Down
2 changes: 2 additions & 0 deletions src/status_im/ui/screens/profile/seed/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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}]))
Expand Down

0 comments on commit 6a73257

Please sign in to comment.