mirror of
https://github.com/penpot/penpot.git
synced 2025-07-30 00:57:23 +02:00
🐛 Fix layers scroll breaking new css system
This commit is contained in:
parent
bbe3021aed
commit
f1d73d5662
3 changed files with 12 additions and 2 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue