Skip to content

Commit

Permalink
Fix missing ref on search input
Browse files Browse the repository at this point in the history
Fixes #10833
  • Loading branch information
Ferossgp committed Jun 17, 2020
1 parent ce1ce1c commit b9307dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/status_im/ui/components/search_input/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
[quo/text-input {:placeholder (i18n/label :t/search)
:blur-on-submit true
:multiline false
:ref #(reset! input-ref %)
:get-ref #(reset! input-ref %)
:default-value search-filter
:auto-focus auto-focus
:on-cancel on-cancel
Expand All @@ -22,7 +22,7 @@
:padding-bottom 2}
:before {:icon :main-icons/search
:style {:padding-horizontal 8}
:on-press #(.focus ^js @input-ref)
:on-press #(some-> ^js @input-ref (.focus))
:icon-opts {:color (:icon-02 @colors/theme)}}
:on-focus #(do
(when on-focus
Expand Down

0 comments on commit b9307dd

Please sign in to comment.