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

Disabled UDropdown Item Submits Form Unexpectedly #2808

Open
EvertonWingert opened this issue Nov 29, 2024 · 0 comments
Open

Disabled UDropdown Item Submits Form Unexpectedly #2808

EvertonWingert opened this issue Nov 29, 2024 · 0 comments
Labels
bug Something isn't working triage

Comments

@EvertonWingert
Copy link

EvertonWingert commented Nov 29, 2024

Environment

  • Operating System: Windows_NT
  • Node Version: v20.16.0
  • Nuxt Version: -
  • CLI Version: 3.16.0
  • Nitro Version: -
  • Package Manager: [email protected]
  • Builder: -
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Version

2.19.1

Reproduction

https://stackblitz.com/edit/nuxt-ui-5smvyb?file=app.vue

Description

When using a UDropdown component inside an HTML form element, any disabled dropdown item (disabled: true) unexpectedly triggers a form submission. This behavior occurs only when the dropdown item is disabled.

Steps to Reproduce

  • Add a UDropdown component inside an HTML form tag.
  • Define dropdown items with one or more having disabled: true.
  • Click on a disabled dropdown item.
  • Observe that the form is submitted, even though the item is disabled.

Additional context

No response

Logs

@EvertonWingert EvertonWingert added bug Something isn't working triage labels Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

1 participant