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

Form actions doesn't work inside a common modal element #517

Open
muratgozel opened this issue Mar 2, 2025 · 0 comments
Open

Form actions doesn't work inside a common modal element #517

muratgozel opened this issue Mar 2, 2025 · 0 comments

Comments

@muratgozel
Copy link

Describe the bug

Form actions doesn't seem to work when they rendered in a modal. The implementation of a modal is pretty common logic. Triggered by a user interaction and has a form inside. I have prepared a stackblitz that covers both working and a broken cases.

Your Example Website or App

https://stackblitz.com/edit/github-vlxsfuw4?file=src%2Froutes%2Findex.tsx

Steps to Reproduce the Bug or Issue

  1. Click "test action inside modal". The modal will open.
  2. Click "go to second phase"
  3. Click "test" button.

Expected behavior

An alert should appear but it doesn't.

Also added the signin form to the index page, below the "test action inside modal" link. There, you can see the alert appears when you go to second phase and click test.

Screenshots or Videos

No response

Platform

  • "@solidjs/meta": "^0.29.4",
  • "@solidjs/router": "^0.15.0",
  • "@solidjs/start": "^1.1.0",
  • "solid-js": "^1.9.5",
  • "vinxi": "^0.5.3"

Additional context

No response

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