Skip to content

Commit

Permalink
[Joy][Autocomplete] Add type=button to clear button
Browse files Browse the repository at this point in the history
  • Loading branch information
brijeshb42 committed Oct 2, 2023
1 parent 0124b79 commit 67e35ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/mui-joy/src/Autocomplete/Autocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,7 @@ const Autocomplete = React.forwardRef(function Autocomplete(
title: clearText,
},
});
clearIndicatorProps.type = clearIndicatorProps.type ?? 'button';

const [SlotPopupIndicator, popupIndicatorProps] = useSlot('popupIndicator', {
className: classes.popupIndicator,
Expand Down

0 comments on commit 67e35ef

Please sign in to comment.