🐛 Fix toolbar disappearing

This commit is contained in:
AzazelN28 2024-04-11 10:41:51 +02:00 committed by Alonso Torres
parent b684ee2f83
commit a569a350b4
6 changed files with 16 additions and 11 deletions

View file

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