Why not use closest
dom api to find parent scope?
#3926
lovetingyuan
started this conversation in
3. Feature Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think use closest to find parent scope is more performant than using
parentNode
(closestDataStack).eg:
el.closest(['x-data'])._x_dataStack
Beta Was this translation helpful? Give feedback.
All reactions