mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-27 14:59:27 +08:00
parent
8d8d999803
commit
84f491ccab
5
.changeset/tender-items-visit.md
Normal file
5
.changeset/tender-items-visit.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@tiptap/suggestion": patch
|
||||
---
|
||||
|
||||
Dropdowns from the suggestion utility couldn't be closed with the `Esc` key
|
@ -197,7 +197,7 @@ export function Suggestion<I = any, TSelected = any>({
|
||||
|
||||
const handleStart = started || (moved && changed)
|
||||
const handleChange = changed || moved
|
||||
const handleExit = stopped
|
||||
const handleExit = stopped || (moved && changed)
|
||||
|
||||
// Cancel when suggestion isn't active
|
||||
if (!handleStart && !handleChange && !handleExit) {
|
||||
|
Loading…
Reference in New Issue
Block a user