modal: fix toggle on state

This commit is contained in:
jean-emmanuel 2017-07-13 09:43:33 +02:00
parent 4f77dab9f1
commit cf4f469cc0
3 changed files with 6 additions and 27 deletions

View file

@ -109,7 +109,7 @@ module.exports = class Modal extends Panel {
this.fixScrolling()
this.popup.toggle(this.value?true:false)
this.container.toggleClass('on', this.value?true:false)
this.container.add(this.light).toggleClass('on', this.value?true:false)
if (this.value) {