react-mentions
react-mentions copied to clipboard
markup="@__id__" does not work
Steps to reproduce:
- Use a mention with the markup set as
markup="@__id__"and the trigger as @ - try to trigger a mention with
@ - nothing shows up
- change the markup to markup="@(id)"
- restart the app and retry the trigger. The mentions are shown
Expected behaviour:
The markup does not allow the use of just __id__
Observed behaviour:
The markup allows the use of just __id__
Workaround: Force edit the text on submit, looking for invalid markup matching, and replace it with was is needed. So replace all @(xxxxxxx) with @xxxxxx
Facing the same problem
@Bilb This makes sense. Encapsulation helps the parser to identify your sensitive data.
Steps to reproduce:
- Use a mention with the markup set as
markup="@__id__"and the trigger as @- try to trigger a mention with
@- nothing shows up
- change the markup to markup="@(id)"
- restart the app and retry the trigger. The mentions are shown
Expected behaviour: The markup does not allow the use of just
__id__Observed behaviour: The markup allows the use of just__id__Workaround: Force edit the text on submit, looking for invalid markup matching, and replace it with was is needed. So replace all @(xxxxxxx) with @xxxxxx
I have same problem but I added one space after markup like this : '__id__ ' and resolve my problem.
That's work for me.