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:
parent
775ba4da58
commit
62f6669134
2 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue