Fixed an issue where the text constructor wasn't handling the rendering state when call the converter.
This commit is contained in:
		| @@ -2094,6 +2094,8 @@ class text extends IgniteTemplate { | ||||
|     constructor(text, converter) { | ||||
|         super(); | ||||
|  | ||||
|         IgniteRendering.push(); | ||||
|  | ||||
|         if (text instanceof IgniteProperty) { | ||||
|             this._callbacks.push(text.attachOnChange((oldValue, newValue) => this.onTextChanged(converter != null ? converter(newValue) : newValue))); | ||||
|             this._callbacks.push(text.attachOnPush((list, items) => this.onTextChanged(converter != null ? converter(list) : null))); | ||||
| @@ -2125,6 +2127,8 @@ class text extends IgniteTemplate { | ||||
|         } else { | ||||
|             this._text = (converter != null ? converter(text) : text); | ||||
|         } | ||||
|  | ||||
|         IgniteRendering.pop(); | ||||
|     } | ||||
|  | ||||
|     construct(parent, sibling) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user