Skip to content

Commit

Permalink
fix(DropdownLight.jsx): Added "button" type to prevent form submissio…
Browse files Browse the repository at this point in the history
…n when opening options list
  • Loading branch information
MarcosViniciusPC committed Sep 30, 2024
1 parent d9e14bb commit 1f2ec59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/DropdownLight/DropdownLight.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ const DropdownLight = ({
required={required}
/>
<Button
type="button"
aria-haspopup="true"
aria-label={isOpen ? 'fechar lista de itens' : 'abrir lista de itens'}
onClick={handleToggleDropdown}
Expand Down

0 comments on commit 1f2ec59

Please sign in to comment.