From a25f1e5331eb9073ed5a62362c0842b329ae158a Mon Sep 17 00:00:00 2001 From: Andrew Telnov Date: Thu, 19 Dec 2024 12:35:25 +0200 Subject: [PATCH] Remove reactivity in react on "css*" properties --- packages/survey-react-ui/src/reactquestion_element.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/survey-react-ui/src/reactquestion_element.tsx b/packages/survey-react-ui/src/reactquestion_element.tsx index a94651f5aa..29cc26ad85 100644 --- a/packages/survey-react-ui/src/reactquestion_element.tsx +++ b/packages/survey-react-ui/src/reactquestion_element.tsx @@ -178,7 +178,7 @@ export class SurveyElementBase extends React.Component { }; } protected canUsePropInState(key: string): boolean { - return true; + return !key.startsWith("css"); } private unMakeBaseElementReact(stateElement: Base) { if (!this.canMakeReact(stateElement)) return;