modal: css not properly applied if the property was previously empty and the modal had been opened at least once

This commit is contained in:
jean-emmanuel 2019-04-24 20:50:27 +02:00
parent 56120761ed
commit 6d8baec29c
2 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,10 @@
# Changelog
## 0.45.8
- bug fixes:
- modal: `css` not properly applied if the property was previously empty and the modal had been opened at least once
## 0.45.7
- bug fixes

View file

@ -893,7 +893,7 @@ class Widget extends EventEmitter {
if (oldStyle) {
this.container.replaceChild(style, oldStyle)
} else if (scopedCss.length || unScopedCss.length){
this.container.insertBefore(style, this.widget)
this.container.insertBefore(style, this.container.childNodes[0] || null)
}