mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-27 14:59:27 +08:00
feat(suggestion): trigger exit when the items are empty
This commit is contained in:
parent
cf2067906f
commit
6bdfb0a540
@ -253,7 +253,7 @@ export function Suggestion<I = any, TSelected = any>({
|
||||
})
|
||||
}
|
||||
|
||||
if (handleExit) {
|
||||
if (handleExit || !props.items?.length) {
|
||||
renderer?.onExit?.(props)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user