Skip to main content

html-button-type-submit-gotcha

Fix buttons unintentionally submitting forms due to HTML's default type="submit" behavior. Use when: (1) Dismiss/cancel/close buttons trigger form submissions, (2) Modal/dialog buttons cause unexpected form submits, (3) Dropdown/toggle buttons submit parent forms, (4) Any interactive button inside a form triggers submission when it shouldn't. Solves the common gotcha where buttons without explicit type attributes default to type="submit" inside forms, causing confusing behavior. Covers HTML button elements, React components, and all web frameworks with form handling.

Jump to install

Source facts

Repository
Hankanman/claude-config
Last source activity
February 3, 2026 at 07:54
Detected SKILL.md language
English
Stars
1
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.