modal: error when label depends on a child's property

This commit is contained in:
bordun 2020-02-03 14:38:17 +01:00
parent 97d5296293
commit ca20d3cdef
2 changed files with 8 additions and 1 deletions

View file

@ -193,10 +193,12 @@ class Modal extends Panel {
updatePopupLabel() {
if (!this.popup) return
var label = this.getProp('popupLabel') ? iconify(this.getProp('popupLabel')) : DOM.get(this.container, '> .label')[0].innerHTML
DOM.get(this.popup, '.popup-title .popup-label')[0].innerHTML = label
this.labelChange = false
}
onPropChanged(propName, options, oldPropValue) {