Skip to content

Commit

Permalink
fix: removeCSS not work with container
Browse files Browse the repository at this point in the history
  • Loading branch information
SakuraHentai committed Jul 25, 2024
1 parent 19d1bc5 commit 2fb097e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useCSSVarRegister.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const useCSSVarRegister = <V, T extends Record<string, V>>(
},
([, , styleId]) => {
if (isClientSide) {
removeCSS(styleId, { mark: ATTR_MARK });
removeCSS(styleId, { mark: ATTR_MARK, attachTo: container });
}
},
([, cssVarsStr, styleId]) => {
Expand Down

0 comments on commit 2fb097e

Please sign in to comment.