Skip to content

Commit

Permalink
feat: suggestions trigger rule (draft-js-plugins#1507)
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejlaufer authored Oct 5, 2020
1 parent 374adac commit ed27d94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class MentionSuggestions extends Component {
'g'
).test(plainText) &&
anchorOffset <= end) || // @ is the first character
(anchorOffset > start + this.props.mentionTrigger.length &&
(anchorOffset >= start + this.props.mentionTrigger.length &&
anchorOffset <= end) // @ is in the text or at the end
);

Expand Down

0 comments on commit ed27d94

Please sign in to comment.