Skip to content

Dropdown button submitting the form #756

@lucasalberto01

Description

@lucasalberto01

Describe the bug
When using the dropdown within a form, when you click to open the dropdown, the form is submitted

To Reproduce
Steps to reproduce the behavior:

  1. Create a form
  2. Add a dropdown menu inside the form

Example -> https://codesandbox.io/p/sandbox/flowbite-react-hovh0m?welcome=true

Expected behavior
The idea is that I can use the form with the dropdown inside, there is this example inside the flowbite
https://flowbite.com/docs/forms/select/#select-with-dropdown

Screenshots
When I click on the dropdown, this happens
image

Project information:

  • Tailwind: 3.3.2
  • Flowbite: 1.6.5
  • Flowbite React: 0.4.4
  • Type: Vite and CRA

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions