From 4c9e1d401523cdc77055d2eeb964642a49b1ab33 Mon Sep 17 00:00:00 2001 From: Luis de Dios Date: Thu, 14 May 2026 08:53:23 +0200 Subject: [PATCH] :bug: Fix linting error --- frontend/src/app/main/ui/components/numeric_input.cljs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/main/ui/components/numeric_input.cljs b/frontend/src/app/main/ui/components/numeric_input.cljs index 3ad3f108ae..c94ea3c152 100644 --- a/frontend/src/app/main/ui/components/numeric_input.cljs +++ b/frontend/src/app/main/ui/components/numeric_input.cljs @@ -214,7 +214,7 @@ (dom/blur! node))))) handle-focus - (mf/use-callback + (mf/use-fn (mf/deps on-focus select-on-focus?) (fn [event] (reset! last-value* (parse-value)) @@ -223,9 +223,9 @@ (mf/set-ref-val! dirty-ref true) (on-focus event)) (when select-on-focus? - (dom/select-text! target) - ;; In webkit browsers the mouseup event will be called after the on-focus causing and unselect - (.addEventListener target "mouseup" dom/prevent-default #js {:once true}))))) + (dom/select-text! target) + ;; In webkit browsers the mouseup event will be called after the on-focus causing and unselect + (.addEventListener target "mouseup" dom/prevent-default #js {:once true}))))) props (-> (obj/clone props) (obj/unset! "selectOnFocus")