0
Fork 0
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:
alonso.torres 2020-10-27 12:17:41 +01:00 committed by Hirunatan
parent db9364a57b
commit dc6b476c57

View file

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