mirror of
https://github.com/penpot/penpot.git
synced 2026-03-13 05:46:08 +00:00
🐛 Fixes problem when editing projects in dashboard.
This commit is contained in:
@@ -38,6 +38,12 @@
|
||||
(dom/prevent-default event)
|
||||
(dom/stop-propagation event)))
|
||||
|
||||
on-blur
|
||||
(mf/use-callback
|
||||
(fn [event]
|
||||
(let [name (dom/get-target-val event)]
|
||||
(on-end name))))
|
||||
|
||||
on-keyup
|
||||
(mf/use-callback
|
||||
(fn [event]
|
||||
@@ -60,7 +66,8 @@
|
||||
:ref input-ref
|
||||
:on-click on-click
|
||||
: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]]))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user