Open SargisPlusPlus opened 1 year ago
+1
+1
I also have problem like this "react": "18.2.0", "next": "12.3.1", "react-dom": "18.2.0", "react-mentions": "^4.4.10" The issue occur when i click the mention name, see the error like image below
Same issue here. Any suggestions on how to solve this?
+1
+1
Please, see this possible solution.
Steps to reproduce:
Cannot reproduce it. Only happens in production.
Expected behaviour:
Observed behaviour: I can see a list of mentions when I start typing "@" but choosing the mention, it does not choose it. When running in dev mode, it works as expected, no issues. In console log, I see:
Tech Stack:
My code:
I was able to inject a breakpoint right before the issue happens(it breaks on line 103). If you look at the image, I am puzzled why captureGroupOffsets=5. (is this right?) Also, notice that markup, on line 81, is undefined, while it is present in the "config" (this is a single item array with object that has markup).. It is as if it iterates over config multiple times...?
Workaround:
Not sure why but this workaround works