File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2404,7 +2404,7 @@ class LoadingPlugin {
2404
2404
getLoadingDirectives ( element ) {
2405
2405
const loadingDirectives = [ ] ;
2406
2406
let matchingElements = [ ...element . querySelectorAll ( '[data-loading]' ) ] ;
2407
- matchingElements = matchingElements . filter ( ( elt ) => elt . closest ( '[data-controller="live"]' ) === element ) ;
2407
+ matchingElements = matchingElements . filter ( ( elt ) => elt . closest ( '[data-controller~ ="live"]' ) === element ) ;
2408
2408
if ( element . hasAttribute ( 'data-loading' ) ) {
2409
2409
matchingElements = [ element , ...matchingElements ] ;
2410
2410
}
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ export default class implements PluginInterface {
153
153
let matchingElements = [ ...element . querySelectorAll ( '[data-loading]' ) ] ;
154
154
155
155
// ignore elements which are inside a nested "live" component
156
- matchingElements = matchingElements . filter ( ( elt ) => elt . closest ( '[data-controller="live"]' ) === element ) ;
156
+ matchingElements = matchingElements . filter ( ( elt ) => elt . closest ( '[data-controller~ ="live"]' ) === element ) ;
157
157
158
158
// querySelectorAll doesn't include the element itself
159
159
if ( element . hasAttribute ( 'data-loading' ) ) {
You can’t perform that action at this time.
0 commit comments