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 17532cdf0f
commit 40a399fa1f
2 changed files with 8 additions and 1 deletions

View file

@ -1,5 +1,10 @@
# Changelog
## 0.49.1
- bug fixes
- modal: error when `label` depends on a child's property
## 0.49.0
**Deprecation**

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) {