Skip to content

Commit

Permalink
Fixed #290 - StyleClass is not working as expected on PrimeBlocks pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed May 16, 2022
1 parent 9477d4b commit 1b28384
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/lib/styleclass/StyleClass.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export const StyleClass = React.forwardRef((props, ref) => {
useUpdateEffect(() => {
destroy();
init();
}, [props.nodeRef]);
});

useUnmountEffect(() => {
destroy();
Expand All @@ -195,4 +195,4 @@ StyleClass.defaultProps = {
leaveToClassName: null,
hideOnOutsideClick: false,
toggleClassName: null
}
}

0 comments on commit 1b28384

Please sign in to comment.