@ -116,7 +116,7 @@ module.exports = (title, content, ok, cancel, focusSelector, opts) => {
if (modalDialog) {
modalDialog.addEventListener('click', (e) => {
footerIsActive = document.activeElement === modalDialog
if (e.toElement == modalDialog) {
if (e.toElement === modalDialog) {
cancelListener() // click is outside of modal-content
}
})