Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: "insert command" button like "Clear formatting" triggers a form submit #564

Open
natharduini opened this issue Jul 13, 2024 · 0 comments

Comments

@natharduini
Copy link

What happened?

My ngx-editor is in a form and when I click the "Clear formatting" menu button, it triggers a form submission.

Adding type="button" in insert-command.component.html prevents that.

Version

v17.x.x

Angular Version

v17.x.x

What browsers are you seeing the problem on?

Firefox, Chrome

Link to reproduce

https://stackblitz.com/edit/ngx-editor-vanv24

Relevant log output

No response

Willing to submit a PR?

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant