Merge pull request #851 from dod-ccpo/modal-freezing
Fix modal freezing fix
This commit is contained in:
11
js/index.js
11
js/index.js
@@ -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',
|
||||
''
|
||||
|
Reference in New Issue
Block a user