You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Comments:
This is probably not something that is going to happen frequently, but I came across it while debugging our own implementation which has a simpler markup ({{__id__:__display__}}). For that markup, with {{ as trigger, the default regex breaks whenever another mention comes after it, even when just typing the trigger. Turns out this behaviour also occurs for the default markup and regex, although it's less obvious.
In the very first input box, put your cursor at the beginning (before Hi John Doe,).
Type @, the search box appears.
Type [.
Expected behaviour:
The results in the search box are updated. Likely nothing will match, but that should be fine.
Observed behaviour:
The new mention gets combined with the one that comes after it (in this case John Doe), and the search box disappears. Any text that was in between is now part of the mention as well.
Workaround:
Use a different regex. I haven't thought about a solution for the default one, but will be writing one for our own implementation.
The text was updated successfully, but these errors were encountered:
Comments:
This is probably not something that is going to happen frequently, but I came across it while debugging our own implementation which has a simpler markup (
{{__id__:__display__}}
). For that markup, with{{
as trigger, the default regex breaks whenever another mention comes after it, even when just typing the trigger. Turns out this behaviour also occurs for the default markup and regex, although it's less obvious.Steps to reproduce:
Hi John Doe,
).@
, the search box appears.[
.Expected behaviour:
The results in the search box are updated. Likely nothing will match, but that should be fine.
Observed behaviour:
The new mention gets combined with the one that comes after it (in this case
John Doe
), and the search box disappears. Any text that was in between is now part of the mention as well.Workaround:
Use a different regex. I haven't thought about a solution for the default one, but will be writing one for our own implementation.
The text was updated successfully, but these errors were encountered: