diff --git a/packages/grapesjs-react/src/SelectorsProvider.tsx b/packages/grapesjs-react/src/SelectorsProvider.tsx index fd1880b..e432ac9 100644 --- a/packages/grapesjs-react/src/SelectorsProvider.tsx +++ b/packages/grapesjs-react/src/SelectorsProvider.tsx @@ -86,6 +86,7 @@ const SelectorsProvider = memo(function ({ children }: SelectorsProviderProps) { } editor.on(event, up); + Selectors.__trgCustom(); return () => { editor.off(event, up); diff --git a/packages/grapesjs-react/src/StylesProvider.tsx b/packages/grapesjs-react/src/StylesProvider.tsx index a96d7f2..1fcc129 100644 --- a/packages/grapesjs-react/src/StylesProvider.tsx +++ b/packages/grapesjs-react/src/StylesProvider.tsx @@ -44,6 +44,7 @@ const StylesProvider = memo(function ({ children }: StylesProviderProps) { } editor.on(event, up); + Styles.__trgCustom(); return () => { editor.off(event, up);