Skip to content

Commit

Permalink
SQ fixes from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
liamtarpey committed Oct 21, 2020
1 parent 6bd0a3c commit dedf76c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const MicroModal = (() => {
}

showModal (event = null) {
const openClass = this.config.openClass.split(' ');
const openClass = this.config.openClass.split(' ')
this.activeElement = document.activeElement
this.modal.setAttribute('aria-hidden', 'false')
this.modal.classList.add(...openClass)
Expand Down Expand Up @@ -86,8 +86,8 @@ const MicroModal = (() => {
}
this.config.onClose(this.modal, this.activeElement, event)

let openClass = this.config.openClass.split(' ') // <- old school ftw
if (this.config.awaitCloseAnimation) {
let openClass = this.config.openClass.split(' ') // <- old school ftw
this.modal.addEventListener('animationend', function handler () {
modal.classList.remove(...openClass)
modal.removeEventListener('animationend', handler, false)
Expand Down

0 comments on commit dedf76c

Please sign in to comment.