feat(suggestion): trigger exit when the items are empty

This commit is contained in:
liting 2024-08-31 17:27:07 +08:00
parent cf2067906f
commit 6bdfb0a540

View File

@ -253,7 +253,7 @@ export function Suggestion<I = any, TSelected = any>({
})
}
if (handleExit) {
if (handleExit || !props.items?.length) {
renderer?.onExit?.(props)
}