[#5670] [desktop] fix jumping cursor when quickly typing in Recovery phrase
This commit is contained in:
parent
5c282b6cea
commit
3486a0f5e6
|
@ -18,7 +18,10 @@
|
||||||
(defview passphrase-input [passphrase error warning]
|
(defview passphrase-input [passphrase error warning]
|
||||||
(letsubs [input-ref (reagent/atom nil)]
|
(letsubs [input-ref (reagent/atom nil)]
|
||||||
{:component-did-mount (fn [_] (when config/testfairy-enabled?
|
{: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
|
[text-input/text-input-with-label
|
||||||
{:style styles/recovery-phrase-input
|
{:style styles/recovery-phrase-input
|
||||||
:height 92
|
:height 92
|
||||||
|
|
Loading…
Reference in New Issue