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 c3ee75b commit d764affCopy full SHA for d764aff
src/StimulusBundle/assets/src/loader.ts
@@ -83,6 +83,11 @@ class StimulusLazyControllerHandler {
83
new MutationObserver((mutationsList) => {
84
for (const { attributeName, target, type } of mutationsList) {
85
switch (type) {
86
+ case 'childList': {
87
+ this.lazyLoadExistingControllers(target as Element);
88
+ break;
89
+ }
90
+
91
case 'attributes': {
92
if (
93
attributeName === controllerAttribute &&
@@ -92,12 +97,6 @@ class StimulusLazyControllerHandler {
97
this.loadLazyController(controllerName)
98
);
94
99
}
95
-
96
- break;
- }
- case 'childList': {
100
- this.lazyLoadExistingControllers(target as Element);
101
102
103
0 commit comments