widget: fix css regression
This commit is contained in:
parent
0ab928efc2
commit
2a509adfa8
2 changed files with 2 additions and 1 deletions
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
- bug fixes
|
||||
- patchbay: layout issue
|
||||
- widget: regression causing error when emptying the css property
|
||||
|
||||
## 1.27.4
|
||||
|
||||
|
|
|
|||
|
|
@ -1201,7 +1201,7 @@ class Widget extends EventEmitter {
|
|||
var style = (unScopedCss ? prefix + '{' + unScopedCss + '}\n' : '') + scopedCss
|
||||
style = style.trim()
|
||||
|
||||
if (this.style) {
|
||||
if (this.style && this.container.contains(this.style)) {
|
||||
if (style) this.style.innerText = style
|
||||
else this.container.removeChild(this.style)
|
||||
} else if (scopedCss.length || unScopedCss.length){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue