tinymce / tinymce-react

Offical TinyMCE React component
MIT License
937 stars 152 forks source link

Custom plugin Button Loses Disabled State on Additional State Update #471

Closed Stanislavussov closed 6 months ago

Stanislavussov commented 9 months ago

What is the current behavior? Despite setting the enabled property of a custom plugin to false, and adding an additional state that causes the component with the WYSIWYG editor to rerender, the button's enabled state gets reset after each render.

What is the expected behavior? The enabled state should remain consistent across rerenders.

Which versions of TinyMCE, and which browser/OS are affected by this issue? Did this work in previous versions of TinyMCE or tinymce-react? Browser: Version 116.0.5845.179 (Official Build) snap (64-bit) OS: Ubuntu NPM Package Version: "@tinymce/tinymce-react": "^4.3.0"

TinyITAdmin commented 9 months ago

Ref: INT-3228

danoaky-tiny commented 7 months ago

Just need a bit more info, could you please provide a code snippet of what you're trying to achieve? You can use codesandbox.io as a template.

github-actions[bot] commented 6 months ago

This issue is stale because it has been open for 30 days with no activity. Respond with a comment or this will be closed in 7 days.