diff --git a/components/lib/styleclass/StyleClass.js b/components/lib/styleclass/StyleClass.js index 2df9855160..44c3402fcc 100644 --- a/components/lib/styleclass/StyleClass.js +++ b/components/lib/styleclass/StyleClass.js @@ -173,7 +173,7 @@ export const StyleClass = React.forwardRef((props, ref) => { useUpdateEffect(() => { destroy(); init(); - }, [props.nodeRef]); + }); useUnmountEffect(() => { destroy(); @@ -195,4 +195,4 @@ StyleClass.defaultProps = { leaveToClassName: null, hideOnOutsideClick: false, toggleClassName: null -} \ No newline at end of file +}