mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +00:00
🐛 Fix highlight on frames after rename (#8938)
This commit is contained in:
parent
cbe9d31599
commit
443fb60743
@ -162,14 +162,16 @@
|
||||
(let [name-input (mf/ref-val ref)
|
||||
name (str/trim (dom/get-value name-input))]
|
||||
(reset! edition* false)
|
||||
(st/emit! (dw/end-rename-shape frame-id name)))))
|
||||
(st/emit! (dw/end-rename-shape frame-id name))
|
||||
(on-frame-leave frame-id))))
|
||||
|
||||
cancel-edit
|
||||
(mf/use-fn
|
||||
(mf/deps frame-id)
|
||||
(fn []
|
||||
(reset! edition* false)
|
||||
(st/emit! (dw/end-rename-shape frame-id nil))))
|
||||
(st/emit! (dw/end-rename-shape frame-id nil))
|
||||
(on-frame-leave frame-id)))
|
||||
|
||||
on-key-down
|
||||
(mf/use-fn
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user