turn off auto capitalization in url text inputs

This commit is contained in:
Roman Volosovskyi 2018-02-17 23:04:44 +08:00
parent dd83212eba
commit 7e4903826f
No known key found for this signature in database
GPG Key ID: 154EBFAC70C8CC3E
2 changed files with 5 additions and 1 deletions

View File

@ -30,6 +30,8 @@
(re-frame/dispatch [:navigate-to-clean :home]) (re-frame/dispatch [:navigate-to-clean :home])
(re-frame/dispatch [:open-browser {:url @url-text}])) (re-frame/dispatch [:open-browser {:url @url-text}]))
:placeholder (i18n/label :t/enter-url) :placeholder (i18n/label :t/enter-url)
:auto-capitalize :none
:auto-correct false
:style styles/url-input}]] :style styles/url-input}]]
[react/text {:style styles/list-title} [react/text {:style styles/list-title}
(i18n/label :t/selected-dapps)] (i18n/label :t/selected-dapps)]

View File

@ -33,6 +33,8 @@
:on-submit-editing #(re-frame/dispatch [:update-browser (assoc browser :url @url-text)]) :on-submit-editing #(re-frame/dispatch [:update-browser (assoc browser :url @url-text)])
:auto-focus (not url) :auto-focus (not url)
:placeholder (i18n/label :t/enter-url) :placeholder (i18n/label :t/enter-url)
:auto-capitalize :none
:auto-correct false
:default-value url :default-value url
:style styles/url-input}] :style styles/url-input}]
;;TODO .reload doesn't work, implement later ;;TODO .reload doesn't work, implement later