Merge pull request #9618 from penpot/luis-fix-linting-issue

🐛 Fix linting error
This commit is contained in:
Alejandro Alonso 2026-05-14 08:59:54 +02:00 committed by GitHub
commit 49d76d0f1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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")