mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
fix(autocomplete): maximum update depth exceeded in autocomplete (#3175)
This commit is contained in:
parent
f3fdb7b666
commit
2069a7a9d0
5
.changeset/tough-peaches-live.md
Normal file
5
.changeset/tough-peaches-live.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@nextui-org/autocomplete": patch
|
||||
---
|
||||
|
||||
Fix maximum update depth exceeded on Autocomplete component (#3094)
|
||||
@ -318,7 +318,7 @@ export function useAutocomplete<T extends object>(originalProps: UseAutocomplete
|
||||
state.setSelectedKey(key);
|
||||
state.setInputValue(item.textValue);
|
||||
}
|
||||
}, [inputRef.current, state]);
|
||||
}, [inputRef.current]);
|
||||
|
||||
// apply the same with to the popover as the select
|
||||
useEffect(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user