diff --git a/CHANGELOG.md b/CHANGELOG.md index 43987a2d..7033d500 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.49.1 + +- bug fixes + - modal: error when `label` depends on a child's property + ## 0.49.0 **Deprecation** diff --git a/src/client/app/widgets/containers/modal.js b/src/client/app/widgets/containers/modal.js index 9fc14a48..6fd28fde 100644 --- a/src/client/app/widgets/containers/modal.js +++ b/src/client/app/widgets/containers/modal.js @@ -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) {