I discovered an issue while using the image plugin in the editor. The plugin renders a placeholder button, which I need to click to open a popover. However, clicking this button inadvertently triggers form submissions because it lacks the type="button" attribute.
Fixes # (issue)
Type of change
Please tick the relevant option.
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
Checklist:
[x] I have performed a self-review of my own code
[ ] I have commented on my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have checked my code and corrected any misspellings
Description
I discovered an issue while using the image plugin in the editor. The plugin renders a placeholder button, which I need to click to open a popover. However, clicking this button inadvertently triggers form submissions because it lacks the type="button" attribute.
Fixes # (issue)
Type of change
Please tick the relevant option.
Checklist: