react-mentions icon indicating copy to clipboard operation
react-mentions copied to clipboard

markup="@__id__" does not work

Open Bilb opened this issue 4 years ago • 5 comments

Steps to reproduce:

  1. Use a mention with the markup set as markup="@__id__" and the trigger as @
  2. try to trigger a mention with @
  3. nothing shows up
  4. change the markup to markup="@(id)"
  5. 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

Bilb avatar Nov 18 '20 00:11 Bilb

Facing the same problem

vivekcontentstack avatar Dec 12 '20 08:12 vivekcontentstack

@Bilb This makes sense. Encapsulation helps the parser to identify your sensitive data.

ifahadashraf avatar Dec 23 '20 13:12 ifahadashraf

Steps to reproduce:

  1. Use a mention with the markup set as markup="@__id__" and the trigger as @
  2. try to trigger a mention with @
  3. nothing shows up
  4. change the markup to markup="@(id)"
  5. 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.

MortezaNajafian avatar Feb 01 '21 10:02 MortezaNajafian

That's work for me.

drl-narola avatar Jun 21 '22 10:06 drl-narola