We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f4e57b commit 463f277Copy full SHA for 463f277
packages/alpinejs/src/lifecycle.js
@@ -83,6 +83,9 @@ let initInterceptors = []
83
export function interceptInit(callback) { initInterceptors.push(callback) }
84
85
export function initTree(el, walker = walk, intercept = () => {}) {
86
+ // Don't init a tree within a parent that is being ignored.
87
+ if (findClosest(el, i => i._x_ignore)) return
88
+
89
deferHandlingDirectives(() => {
90
walker(el, (el, skip) => {
91
intercept(el, skip)
0 commit comments