mirror of
https://github.com/penpot/penpot.git
synced 2025-07-23 10:17:17 +02:00
Merge remote-tracking branch 'origin/staging' into develop
This commit is contained in:
commit
a64cb47afb
21 changed files with 81 additions and 45 deletions
|
@ -166,6 +166,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