-
Notifications
You must be signed in to change notification settings - Fork 261
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
Change positioningStrategy on window resize #388
Comments
Update I have added a minimal working example and as you can see, the position strategy does not change sady: https://codesandbox.io/p/devbox/crazy-flower-dtr2w4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey there,
I would like to change the positioningStrategy of the mentions dropdown list. When the window size is greater or than equal to
640px
the positioningStrategy should befixed
. However, when the window size is less than640px
the positioningStrategy should benormal
.This is my modules array:
The variable
windowWidth
is just aref
variable being refreshed with awindow.addEventListener
every time the window resizes.I also reinitialize my quill editor every time fresh, when the window size drops below
640px
or becomes greater/equal to640px
. Here is how I do that:And here is my
initializeQuill
method:However, the positioningStrategy of the mentions module does not change event though I have reinitialize the editor. How can this be? How can I get a workaround on this to have the mentions list
fixed
for sizes equal or greater than640px
andnormal
for sizes less than640px
?I appreciate any kind of help!
Kind regards.
The text was updated successfully, but these errors were encountered: