client/expanders: fix setting empty expander title
This commit is contained in:
parent
63ec28ddb3
commit
9dc438c391
|
@ -40,7 +40,11 @@ class ExpanderControl {
|
||||||
}
|
}
|
||||||
|
|
||||||
set title(newTitle) {
|
set title(newTitle) {
|
||||||
this._expanderNode.querySelector('header span').textContent = newTitle;
|
if (this._expanderNode) {
|
||||||
|
this._expanderNode
|
||||||
|
.querySelector('header span')
|
||||||
|
.textContent = newTitle;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
get _isOpened() {
|
get _isOpened() {
|
||||||
|
|
Loading…
Reference in New Issue