mirror of
https://github.com/penpot/penpot.git
synced 2025-07-23 03:17:51 +02:00
🐛 Fix toolbar disappearing
This commit is contained in:
parent
b684ee2f83
commit
a569a350b4
6 changed files with 16 additions and 11 deletions
|
@ -169,10 +169,11 @@
|
|||
|
||||
(defn get-parent-with-data
|
||||
[^js node name]
|
||||
(loop [current node]
|
||||
(if (or (nil? current) (obj/in? (.-dataset current) name))
|
||||
current
|
||||
(recur (.-parentElement current)))))
|
||||
(let [name (str/camel name)]
|
||||
(loop [current node]
|
||||
(if (or (nil? current) (obj/in? (.-dataset current) name))
|
||||
current
|
||||
(recur (.-parentElement current))))))
|
||||
|
||||
(defn get-parent-with-selector
|
||||
[^js node selector]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue