fix: Suggestion menus should close after typing space beyond trigger
closes #5387
This commit is contained in:
@@ -29,7 +29,10 @@ export default class Suggestion extends Extension {
|
||||
}),
|
||||
new InputRule(this.options.closeRegex, (state, match) => {
|
||||
if (match) {
|
||||
this.editor.events.emit(EventType.SuggestionsMenuClose);
|
||||
this.editor.events.emit(
|
||||
EventType.SuggestionsMenuClose,
|
||||
this.options.type
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user