Skip to content

Commit

Permalink
fix: change the type of button from submit to button to avoid tri…
Browse files Browse the repository at this point in the history
…ggering forms
  • Loading branch information
skoob13 committed Feb 25, 2025
1 parent 27db5f7 commit 36edccc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export const PropertyFilterButton = React.forwardRef<HTMLElement, PropertyFilter
'ph-no-capture': true,
})}
aria-disabled={!!disabledReason}
type={ButtonComponent === 'button' ? 'button' : undefined}
>
<PropertyFilterIcon type={item.type} />
<span className="PropertyFilterButton-content" title={label}>
Expand Down

0 comments on commit 36edccc

Please sign in to comment.