diff --git a/CHANGELOG.md b/CHANGELOG.md index 885aaace..e4c900b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/client/app/widgets/common/widget.js b/src/client/app/widgets/common/widget.js index 5b0eba14..7e9a5e5b 100644 --- a/src/client/app/widgets/common/widget.js +++ b/src/client/app/widgets/common/widget.js @@ -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) }