mirror of
https://github.com/KevinMidboe/vue-js-modal.git
synced 2025-10-29 09:50:22 +00:00
Merge pull request #188 from coxy121/disable-page-scrolling
Added disable page scroll class to html element
This commit is contained in:
@@ -460,10 +460,12 @@ export default {
|
||||
}
|
||||
|
||||
if (scrollable) {
|
||||
document.getElementsByTagName('html')[0].classList.add('v--modal-block-scroll')
|
||||
document.body.classList.add('v--modal-block-scroll')
|
||||
}
|
||||
} else {
|
||||
if (scrollable) {
|
||||
document.getElementsByTagName('html')[0].classList.remove('v--modal-block-scroll')
|
||||
document.body.classList.remove('v--modal-block-scroll')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user