Skip to content

Fix modal.close not being of type button #1110

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Caesarovich
Copy link

@Caesarovich Caesarovich commented Jul 2, 2025

What is it?

  • Fix

Why is it needed?

This is needed because it's a custom button and it is more semantically correct. This also avoid problems such as the browse coercing it into a "submit" button if it is placed within a form. (Which caused my forms to submit when closing the modal).

Checklist:

  • My code follows the developer guidelines of this project
  • I have performed a self-review of my own code
  • I have ran pnpm change and documented my changes
  • I have add necessary docs (if needed)
  • Added new tests to cover the fix / functionality

I have read the CLA Document and I hereby sign the CLA

Copy link

changeset-bot bot commented Jul 2, 2025

🦋 Changeset detected

Latest commit: 680d895

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@qwik-ui/headless Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Jul 2, 2025

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@Caesarovich
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

@Caesarovich Caesarovich force-pushed the fix-modal-close-btn branch from e6208a7 to 3e3d289 Compare July 2, 2025 13:40
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

Successfully merging this pull request may close these issues.

1 participant