diff --git a/components/lib/mention/Mention.js b/components/lib/mention/Mention.js index 3df85d6431..eb8fa36f3e 100644 --- a/components/lib/mention/Mention.js +++ b/components/lib/mention/Mention.js @@ -95,6 +95,7 @@ export const Mention = React.memo( if (!triggerState) { return; } + const { key, index } = triggerState; const value = inputRef.current.value; const position = DomHandler.getCursorOffset(inputRef.current, value.substring(0, index - 1), value.substring(index), key);