mirror of
https://github.com/penpot/penpot.git
synced 2025-06-10 12:31:39 +02:00
🐛 Fix numeric-input component.
This commit is contained in:
parent
c2f604cd01
commit
53e6d7ef2a
2 changed files with 7 additions and 2 deletions
|
@ -162,5 +162,12 @@
|
|||
(obj/set! "onKeyDown" handle-key-down)
|
||||
(obj/set! "onBlur" handle-blur))]
|
||||
|
||||
(mf/use-effect
|
||||
(mf/deps value-str)
|
||||
(fn []
|
||||
(when-let [input-node (mf/ref-val ref)]
|
||||
(when-not (dom/active? input-node)
|
||||
(dom/set-value! input-node value-str)))))
|
||||
|
||||
[:> :input props]))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue