mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
fix(autocomplete): close button display on mobile (#5827)
* fix(autocomplete): close button display on mobile * refactor(autocomplete): disable isClearable if isDisabled is true
This commit is contained in:
parent
b38a2cfb58
commit
2922b35644
5
.changeset/four-candles-applaud.md
Normal file
5
.changeset/four-candles-applaud.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@heroui/autocomplete": patch
|
||||
---
|
||||
|
||||
fix close button display in autocomplete on mobile (#5826)
|
||||
@ -154,6 +154,8 @@ export function useAutocomplete<T extends object>(originalProps: UseAutocomplete
|
||||
const isClearable =
|
||||
originalProps.disableClearable !== undefined
|
||||
? !originalProps.disableClearable
|
||||
: originalProps.isDisabled
|
||||
? false
|
||||
: originalProps.isReadOnly
|
||||
? false
|
||||
: originalProps.isClearable;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user