mirror of
https://github.com/penpot/penpot.git
synced 2025-02-13 18:48:37 -05:00
fix layer selection and change name
This commit is contained in:
parent
549d1a01c9
commit
3ba4ec97dd
1 changed files with 2 additions and 2 deletions
|
@ -123,7 +123,6 @@
|
|||
(when (kbd/enter? event)
|
||||
(on-blur event)))
|
||||
(on-click [event]
|
||||
(dom/stop-propagation event)
|
||||
(dom/prevent-default event)
|
||||
(let [parent (.-parentNode (.-target event))]
|
||||
(set! (.-draggable parent) false))
|
||||
|
@ -136,7 +135,7 @@
|
|||
:auto-focus true
|
||||
:default-value (:name shape "")}]
|
||||
[:span.element-name
|
||||
{:on-click on-click}
|
||||
{:on-double-click on-click}
|
||||
(:name shape "")]))))
|
||||
|
||||
;; --- Layer Simple (Component)
|
||||
|
@ -188,6 +187,7 @@
|
|||
"0.5"
|
||||
"1")}
|
||||
:on-click select
|
||||
:on-double-click #(dom/stop-propagation %)
|
||||
:on-drag-start on-drag-start
|
||||
:on-drag-enter on-drag-enter
|
||||
:on-drag-leave on-drag-leave
|
||||
|
|
Loading…
Add table
Reference in a new issue