react-mentions
react-mentions copied to clipboard
[ERROR undefined] - with regex in trigger
Steps to reproduce:
- Set trigger is
/(\( )/ - Show error undefined
Expected behaviour:
Show suggestion list after input (
Observed behaviour: Show error Workaround:
This is still happening and there's no examples of regex trigger in the examples
@kasplat is there any workaround or simple example of how we can use regex in trigger prop?
Refer to https://github.com/signavio/react-mentions/issues/765 .
below is my code , it will trigger by @
trigger={new RegExp(`(@([^@]*))$`)}