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

How can I access suppressScrollY via $ref #23

Open
olegopro opened this issue Jul 18, 2023 · 0 comments
Open

How can I access suppressScrollY via $ref #23

olegopro opened this issue Jul 18, 2023 · 0 comments

Comments

@olegopro
Copy link

Please tell me how you can get access to suppressScrollX via $ref.

I have a container in which a perfect scrollbar is connected, and there is a modal window on top of this container. When I open a modal window in which there is a list with a scroll (standard browser-based), the container in which the perfect scrollbar is connected also scrolls.

As a temporary solution I did
this.$refs.previewСontainer.$el.classList.remove('ps')
this.$refs.previewСontainer.$el.classList.add('ps')

That is, when I have a modal window open, I just remove the .ps class from the container.

Can I somehow connect via this.$refs.previewСontainer to the suppressScrollX option to make it true or false

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

1 participant