-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
Scrolling within a modal #304
Comments
Yes, change the |
hi, i set the container to my modal, but it does not work. |
Same problem here. Scrolling within a container does not work |
If you can provide a sample (jsfiddle/codesandbox etc), I can take a look - but you are most likely not setting the right |
Hi, Im also having this problem. Ive created a codesandbox: https://codesandbox.io/s/lucid-gauss-n1fhw9?file=/src/App.vue As you can see in the console, the element is found within the container, and the done() callback is called. But no scroll is performed. Thank.! |
@GMolini the const container = document.getElementById("scrollableDiv");
const options = {
container: container.parentElement
// ...
}
// ... That works as expected. |
Ok thanks! Yeah, that works. Another thing that was happening to me is that some things on the dom that i was rendering with a v-html werent loaded by the time i was doing the scrolling. Even using $nextTick wasnt working. But doing a timeout of just 1ms has solved it.
|
Hi this plugin works great when the component is a part of the page, is there a way to make it work when the component is in a scrollable modal? or rather, nested within any other element that has its overflow scrollable?
The text was updated successfully, but these errors were encountered: