[#5670] [desktop] fix jumping cursor when quickly typing in Recovery phrase

This commit is contained in:
Roman Volosovskyi 2018-09-25 12:24:02 +03:00
parent 5c282b6cea
commit 3486a0f5e6
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
1 changed files with 4 additions and 1 deletions

View File

@ -18,7 +18,10 @@
(defview passphrase-input [passphrase error warning]
(letsubs [input-ref (reagent/atom nil)]
{:component-did-mount (fn [_] (when config/testfairy-enabled?
(.hideView js-dependencies/testfairy @input-ref)))}
(.hideView js-dependencies/testfairy @input-ref)))
;;TODO(rasom): remove this line when default-value will
;;be fixed in react-native-desktop
:should-component-update (fn [] false)}
[text-input/text-input-with-label
{:style styles/recovery-phrase-input
:height 92