Fixed programatically inserting comments

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-05-02 20:41:23 +02:00
parent 5afdd80c71
commit 73ed0f5e34
3 changed files with 26 additions and 12 deletions

View File

@@ -63,8 +63,9 @@ const mentionOptions: Partial<any> = {
});
},
onKeyDown(props: any) {
const ref = component.ref as typeof MentionList;
return ref?.onKeyDown(props);
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
return component.ref?.onKeyDown(props);
},
onExit() {
popup[0].destroy();