modal: error when label depends on a child's property
This commit is contained in:
parent
97d5296293
commit
ca20d3cdef
2 changed files with 8 additions and 1 deletions
|
|
@ -1,5 +1,10 @@
|
|||
# Changelog
|
||||
|
||||
## 0.49.1
|
||||
|
||||
- bug fixes
|
||||
- modal: error when `label` depends on a child's property
|
||||
|
||||
## 0.49.0
|
||||
|
||||
**Deprecation**
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue