fix(selector): SelectorMatcher match elements with :not selector (#12977)
This commit is contained in:

committed by
Victor Berchet

parent
f0b0762f4a
commit
9a8423da36
@ -297,12 +297,12 @@ export class SelectorMatcher {
|
||||
return false;
|
||||
}
|
||||
|
||||
let selectables = map.get(name);
|
||||
const starSelectables = map.get('*');
|
||||
let selectables: SelectorContext[] = map.get(name) || [];
|
||||
const starSelectables: SelectorContext[] = map.get('*');
|
||||
if (starSelectables) {
|
||||
selectables = selectables.concat(starSelectables);
|
||||
}
|
||||
if (!selectables) {
|
||||
if (selectables.length === 0) {
|
||||
return false;
|
||||
}
|
||||
let selectable: SelectorContext;
|
||||
|
Reference in New Issue
Block a user