Fix modal freezing fix

This commit is contained in:
George Drummond
2019-05-29 11:05:44 -04:00
parent 4e0cc26b5f
commit b9c0f13228
5 changed files with 25 additions and 26 deletions

View File

@@ -89,7 +89,18 @@ const app = new Vue({
if (data['isOpen']) {
document.body.className += ' modal-open'
this.activeModal = data['name']
var handler = ally.maintain.disabled({
filter: `#${this.modalId}`,
})
this.allyHandler = handler
} else {
this.activeModal = null
if (this.allyHandler) {
this.allyHandler.disengage()
this.allyHandler = null
}
document.body.className = document.body.className.replace(
' modal-open',
''