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

Merged
merged 2 commits into from
Jul 7, 2025

Conversation

Caesarovich
Copy link
Contributor

@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
Contributor 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
Copy link

pkg-pr-new bot commented Jul 7, 2025

Open in StackBlitz

npm i https://pkg.pr.new/qwikifiers/qwik-ui@1110
npm i https://pkg.pr.new/qwikifiers/qwik-ui/@qwik-ui/headless@1110
npm i https://pkg.pr.new/qwikifiers/qwik-ui/@qwik-ui/styled@1110
npm i https://pkg.pr.new/qwikifiers/qwik-ui/@qwik-ui/utils@1110

commit: 680d895

@maiieul
Copy link
Contributor

maiieul commented Jul 7, 2025

LGTM! Thanks @Caesarovich 🫡

@maiieul maiieul merged commit dc0561e into qwikifiers:main Jul 7, 2025
6 checks passed
@github-actions github-actions bot mentioned this pull request Jul 7, 2025
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.

2 participants