Verified Commit 38226648 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed scrolling issue after model closing

parent 137a10c9
......@@ -139,6 +139,7 @@ export default {
aggregatedSuggestions: this.$store.state.cache.aggregatedSuggestions || {},
retributeProfiles: this.$store.state.cache.retributeProfiles || {},
loadingRetributeProfiles: [],
providers: this.$store.state.cache.providers || {},
filters: filters,
accountToDisconnect: null,
}
......@@ -372,7 +373,12 @@ export default {
sortedAccounts: {
handler (v) {
let elems = document.querySelectorAll('.modal')
M.Modal.init(elems, {})
M.Modal.init(elems, {
onCloseEnd () {
// cf https://github.com/Dogfalo/materialize/issues/4622#issuecomment-298072452
document.body.style.removeProperty("overflow");
}
})
},
immediate: true
}
......
......@@ -103,7 +103,12 @@ export default {
},
mounted () {
var elems = document.querySelectorAll('.modal')
var instances = M.Modal.init(elems, {})
M.Modal.init(elems, {
onCloseEnd () {
// cf https://github.com/Dogfalo/materialize/issues/4622#issuecomment-298072452
document.body.style.removeProperty("overflow");
}
})
},
computed: {
sources () {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment