https://github.com/lukasbombach/happy-dom-form-prevent-default-bug
https://github.com/lukasbombach/happy-dom-form-prevent-default-bug
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lukasbombach/happy-dom-form-prevent-default-bug
- Owner: LukasBombach
- Created: 2024-06-13T09:37:03.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-13T09:54:54.000Z (about 1 year ago)
- Last Synced: 2025-02-24T02:40:20.899Z (4 months ago)
- Language: TypeScript
- Size: 19.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Min Rep. Example for preventing form submissions in happy-dom
Issue:
Using `preventDefault()` on a `` submit event should stop the from from navigating, but it does not in `happy-dom`.
See [form-submit-prevent-default-bug.spec.ts](/form-submit-prevent-default-bug.spec.ts) as a reproduction of the bug using `vitest`