Skip to content

Commit

Permalink
fix(useCssVar): observe changes based on element class list (#3131)
Browse files Browse the repository at this point in the history
  • Loading branch information
Waleed-KH committed Jun 6, 2023
1 parent d0e3bc3 commit 9d34afc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/useCssVar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function useCssVar(

if (observe) {
useMutationObserver(elRef, updateCssVar, {
attributeFilter: ['style'],
attributeFilter: ['style', 'class'],
window,
})
}
Expand Down

0 comments on commit 9d34afc

Please sign in to comment.