nuxt / nuxt/ui

Allow using default form behavour in UForm

Open Beginner friendly
#6,482 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

triage
Dominant language
TypeScript
Stars
6.9k
Forks
1.1k
Avg merge
1d 7h
Merged PRs (30d)
57

Description

Package

v4.x

Description

Currently UForm uses @submit.prevent for it's wrapper. This prevents form from being submitted with action+method props after validation is done.

Better use explicit event.preventDefault() or add a prop that disables .prevent

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the UForm component and reviewing its submit handling. Verify how validation interacts with forms using action and method props, then confirm that the default submission behavior can be preserved without breaking validated submissions.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.