Commit d696e279 authored by LianaHus's avatar LianaHus

tandard

parent 4e841874
......@@ -114,9 +114,9 @@ module.exports = (title, content, ok, cancel, focusSelector, opts) => {
let modalDialog = document.getElementById('modal-dialog')
if (modalDialog) {
modalDialog.addEventListener('click', (e)=>{
modalDialog.addEventListener('click', (e) => {
footerIsActive = document.activeElement === modalDialog
if (e.toElement == modalDialog) {
if (e.toElement === modalDialog) {
cancelListener() // click is outside of modal-content
}
})
......
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