Skip to content
This repository was archived by the owner on Jul 31, 2026. It is now read-only.

fix(Button): prevent implicit form submissions - #356

Closed
svadrutk wants to merge 1 commit into
mainfrom
cursor/default-button-type-7e7c
Closed

fix(Button): prevent implicit form submissions#356
svadrutk wants to merge 1 commit into
mainfrom
cursor/default-button-type-7e7c

Conversation

@svadrutk

@svadrutk svadrutk commented Jul 21, 2026

Copy link
Copy Markdown

Summary

  • default Moonshine buttons to type="button", preventing incidental controls such as Discover from submitting their parent form and triggering scope validation
  • preserve explicit submit/reset types
  • avoid forwarding the default type through asChild
  • add regression coverage for buttons rendered inside forms

Linear: AGE-3026

Testing

  • pnpm test --run (70 tests passed)
  • pnpm type-check
  • pnpm lint

Linear Issue: AGE-3026

Open in WebOpen in Cursor

Co-authored-by: Swad K. <svadrutk@users.noreply.github.com>
@linear-code

linear-code Bot commented Jul 21, 2026

Copy link
Copy Markdown

AGE-3026

@svadrutk svadrutk closed this Jul 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants