From 2fb097e8ae689009002c1a45c56b2ed8162d6149 Mon Sep 17 00:00:00 2001 From: Derek Date: Thu, 25 Jul 2024 15:18:40 +0800 Subject: [PATCH] fix: `removeCSS` not work with `container` --- src/hooks/useCSSVarRegister.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useCSSVarRegister.ts b/src/hooks/useCSSVarRegister.ts index b02f1f4..35bc6c8 100644 --- a/src/hooks/useCSSVarRegister.ts +++ b/src/hooks/useCSSVarRegister.ts @@ -58,7 +58,7 @@ const useCSSVarRegister = >( }, ([, , styleId]) => { if (isClientSide) { - removeCSS(styleId, { mark: ATTR_MARK }); + removeCSS(styleId, { mark: ATTR_MARK, attachTo: container }); } }, ([, cssVarsStr, styleId]) => {