Skip to content

Commit

Permalink
check ref not being nil
Browse files Browse the repository at this point in the history
  • Loading branch information
ulisesmac committed Apr 17, 2023
1 parent 737369e commit c863c28
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/quo2/components/inputs/search_input/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@
{:color (style/clear-icon blur? override-theme)
:size 20}]])

(defn handle-backspace
(defn- handle-backspace
[event ^js/Object scroll-view-ref]
(when (= (oops/oget event "nativeEvent.key") "Backspace")
(when (and (= (oops/oget event "nativeEvent.key") "Backspace")
scroll-view-ref)
(.scrollToEnd scroll-view-ref #js {:animated false})))

(def ^:private props-to-remove
Expand Down

0 comments on commit c863c28

Please sign in to comment.