Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styling the display text will also render the default text (2 overlapping versions of the text is displayed) #708

Open
dmdum opened this issue Aug 22, 2023 · 5 comments

Comments

@dmdum
Copy link

dmdum commented Aug 22, 2023

Steps to reproduce:

  1. Visit this sample link
  2. Mention any of the mention options.

Expected behaviour:
Only 1 version should be displayed. It should be the styled version.

Observed behaviour:
2 Overlapping versions are displayed. The default and the styled version.
image

Workaround:
None so far

@JoacoBert
Copy link

Hi, I have the same problem. Did you find any solution?

@dmdum
Copy link
Author

dmdum commented Aug 27, 2023

Hi, I have the same problem. Did you find any solution?

I've removed the styling for now. Try adding a z-index on the styles to cover the original. It doesn't completely work for me because the styled text still isn't on the same level as the original so it can't cover it completely, but maybe it will for you.

@JoacoBert
Copy link

Thanks for your answer.
I tried different ways but got no results. In the case of finding the solution I will let you know, and if you find it I hope you can let me know.

@dmdum
Copy link
Author

dmdum commented Aug 29, 2023

I'll definitely share it here. Thanks!

@kumarajay0412
Copy link

you can try to make on layer transparent it worked for me i am using js styles given in examples and by making one layer transparent you achieve the result use styles

https://github.com/signavio/react-mentions/blob/master/demo/src/examples/defaultStyle.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants