We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a01876 commit 1773e12Copy full SHA for 1773e12
src/index.js
@@ -39,9 +39,10 @@ function initShowHideEles(container) {
39
40
observer.init({
41
name: 'CoCreateConditionalLogic',
42
- observe: ['subtree', 'childList'],
43
- include: '[data-show],[data-hide]',
+ observe: ['addedNodes'],
+ attributes: ['data-show', 'data-hide'],
44
callback: function(mutation) {
45
+
46
initShowHideEles(mutation.target)
47
}
48
})
0 commit comments