mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 08:20:45 -05:00
🐛 Fixes problem when editing projects in dashboard.
This commit is contained in:
parent
db9364a57b
commit
dc6b476c57
1 changed files with 8 additions and 1 deletions
|
@ -38,6 +38,12 @@
|
||||||
(dom/prevent-default event)
|
(dom/prevent-default event)
|
||||||
(dom/stop-propagation event)))
|
(dom/stop-propagation event)))
|
||||||
|
|
||||||
|
on-blur
|
||||||
|
(mf/use-callback
|
||||||
|
(fn [event]
|
||||||
|
(let [name (dom/get-target-val event)]
|
||||||
|
(on-end name))))
|
||||||
|
|
||||||
on-keyup
|
on-keyup
|
||||||
(mf/use-callback
|
(mf/use-callback
|
||||||
(fn [event]
|
(fn [event]
|
||||||
|
@ -60,7 +66,8 @@
|
||||||
:ref input-ref
|
:ref input-ref
|
||||||
:on-click on-click
|
:on-click on-click
|
||||||
:on-change on-input
|
:on-change on-input
|
||||||
:on-key-down on-keyup}]
|
:on-key-down on-keyup
|
||||||
|
:on-blur on-blur}]
|
||||||
[:span.close {:on-click on-cancel} i/close]]))
|
[:span.close {:on-click on-cancel} i/close]]))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue