🐛 Fix layers scroll breaking new css system

This commit is contained in:
Aitor 2023-07-28 10:37:17 +02:00
parent bbe3021aed
commit f1d73d5662
3 changed files with 12 additions and 2 deletions

View file

@ -151,6 +151,13 @@
current
(recur (.-parentElement current) (dec current-count))))))
(defn get-parent-with-data
[^js node 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]
(loop [current node]