This repository has been archived by the owner on Jun 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(TCMention): rewrite mention detection using different algorithm
BREAKING CHANGE: detect the "word" based on current caret position The intention is to make its behaviour much closer to Facebook/Medium. Also rename the option of `autoHideOnBlurDelay` to `hideOnBlurDelay`. Before: The user type in @ or # to trigger mention panel immediately. If you already type one and navigate it back to the position using your arrow keys on keyboard, the mention panel won't show up this time. After: The user has to type in @ or # with one more word to trigger mention panel. Navigating back to the word will show up the mention panel.
- Loading branch information
Showing
1 changed file
with
99 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters