From 7e4903826fc0c90028641063c90c87a6e6c154a1 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Sat, 17 Feb 2018 23:04:44 +0800 Subject: [PATCH] turn off auto capitalization in url text inputs --- src/status_im/ui/screens/add_new/open_dapp/views.cljs | 2 ++ src/status_im/ui/screens/browser/views.cljs | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/status_im/ui/screens/add_new/open_dapp/views.cljs b/src/status_im/ui/screens/add_new/open_dapp/views.cljs index d093ba0bb6..04e8e6dd88 100644 --- a/src/status_im/ui/screens/add_new/open_dapp/views.cljs +++ b/src/status_im/ui/screens/add_new/open_dapp/views.cljs @@ -30,6 +30,8 @@ (re-frame/dispatch [:navigate-to-clean :home]) (re-frame/dispatch [:open-browser {:url @url-text}])) :placeholder (i18n/label :t/enter-url) + :auto-capitalize :none + :auto-correct false :style styles/url-input}]] [react/text {:style styles/list-title} (i18n/label :t/selected-dapps)] diff --git a/src/status_im/ui/screens/browser/views.cljs b/src/status_im/ui/screens/browser/views.cljs index 61eb879e37..731e5f4398 100644 --- a/src/status_im/ui/screens/browser/views.cljs +++ b/src/status_im/ui/screens/browser/views.cljs @@ -33,6 +33,8 @@ :on-submit-editing #(re-frame/dispatch [:update-browser (assoc browser :url @url-text)]) :auto-focus (not url) :placeholder (i18n/label :t/enter-url) + :auto-capitalize :none + :auto-correct false :default-value url :style styles/url-input}] ;;TODO .reload doesn't work, implement later @@ -93,4 +95,4 @@ [react/touchable-highlight {:on-press #(.goForward @webview) :disabled (not can-go-forward?) :style styles/forward-button} [react/view (when (not can-go-forward?) {:opacity 0.4}) - [vector-icons/icon :icons/arrow-right]]]]])) \ No newline at end of file + [vector-icons/icon :icons/arrow-right]]]]]))