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

fix: add attribute type="button" at insert-command component to prevent form submit (#564) #585

Merged

Conversation

vpikachu
Copy link
Contributor

This PR contains:

  • bugfix
  • feature
  • refactor
  • tests
  • documentation
  • others

Breaking Changes?

  • yes
  • no

Checklist

  • commit messages follow the Conventional Commits pattern
    • A feature commit message is prefixed "feat:"
    • A bugfix commit message is prefixed "fix:"
    • A document related commit is prefixed "docs:"
  • docs have been added / updated (for bug fixes / features)

Describe Your Changes

When ngx-editor used inside form and user click on 'Clear Formatting' button this leads to form submit. Required to add type='button' attribute to button of insert-command component.

Does this PR affects any existing issues?

  • yes
  • no

fixes #564

@sibiraj-s
Copy link
Owner

Hi @vpikachu Thanks for the PR. In the Issue few more areas are mentioned, can you cover that too? #564 (comment)

@vpikachu
Copy link
Contributor Author

Hi @sibiraj-s ! This PR covers all mentioned areas (horizontal_rule and format_clear) ;)

@sibiraj-s sibiraj-s merged commit e378427 into sibiraj-s:master Nov 12, 2024
1 check passed
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in the thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: "insert command" button like "Clear formatting" triggers a form submit
2 participants