Skip to content

Commit

Permalink
fix: incorrect count of class
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSeage committed Nov 10, 2022
1 parent f12cb91 commit 02ab08a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ export class StyleSheet extends MutationObserver {
* regardless of whether the value is being changed or set to the current value
*/
if (
target['className'] === oldValue // prevent same class to execute
|| attributeMutationRecords
attributeMutationRecords
.find((eachAttributeMutationRecord) => eachAttributeMutationRecord.target === target)
) {
continue;
Expand Down

0 comments on commit 02ab08a

Please sign in to comment.