mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
fix(autocomplete): duplicate id in clear & selector button (#5750)
This commit is contained in:
parent
c3224113de
commit
7b7190e222
5
.changeset/slow-maps-confess.md
Normal file
5
.changeset/slow-maps-confess.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@heroui/autocomplete": patch
|
||||
---
|
||||
|
||||
duplicate id in clear & selector button in autocomplete (#5738)
|
||||
@ -446,7 +446,9 @@ export function useAutocomplete<T extends object>(originalProps: UseAutocomplete
|
||||
|
||||
const getClearButtonProps = () =>
|
||||
({
|
||||
...mergeProps(buttonProps, slotsProps.clearButtonProps),
|
||||
...slotsProps.clearButtonProps,
|
||||
preventFocusOnPress: true,
|
||||
excludeFromTabOrder: true,
|
||||
// disable original focus and state toggle from react aria
|
||||
onPressStart: () => {
|
||||
// this is in PressStart for mobile so that touching the clear button doesn't remove focus from
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user