Skip to content

Commit

Permalink
Fix #4221: Mention target must always be input textarea (#4225)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Apr 20, 2023
1 parent 6216c2a commit ba9bf78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/lib/mention/Mention.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ export const Mention = React.memo(
const nextText = value.substring(triggerState.index + currentText.length);

inputRef.current.value = `${prevText}${selectedText} ${nextText}`;
event.target = inputRef.current;
props.onChange && props.onChange(event);
}

Expand Down

0 comments on commit ba9bf78

Please sign in to comment.