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

Mention throws TypeError s.domNode.getBoundingClientRect is not a function #990

Open
Ashokthakuri opened this issue Jul 3, 2024 · 1 comment

Comments

@Ashokthakuri
Copy link

Ashokthakuri commented Jul 3, 2024

When I try to mention use with @ character in the quill editor, it sometimes throws TypeError s.domNode.getBoundingClientRect is not a function in the console and the suggestions does not appears.

Steps for Reproduction:
I tried to replicate the issue locally but couldn't. The issue appears frequently in Vercel (sometime it works after multiple page refresh), where I have deployed my code.

quill

Expected behavior:
The mention feature should show the suggestions

Actual behavior:
The following error is thrown in the console and the suggestions don't work

TypeError
s.domNode.getBoundingClientRect is not a function

I am using nextjs(react):

"next": "14.2.3",
"react": "18.3.1",
"react-quill": "^2.0.0",
"quill-mention": "^4.0.1",
@VaguelySerious
Copy link

Have you tried replacing react-quill with the forked react-quill-new in the interim until react-quill is updated? I made the fork and updated the type definitions there. Also follow #973 for updates on that.

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

2 participants