Skip to content

Fix Bug with DOM Update and {{_this}}

Pre-release
Pre-release
Compare
Choose a tag to compare
@CMEONE CMEONE released this 18 Mar 01:33
· 7 commits to main since this release

We added a new method called tApp.getComponentFromDOM(domElement), which finds the component associated with the DOM object. All calls to {{ _this }} use this method. Instead of just scanning the current element to see if it is a component, it continues to scan up the tree until it finds a component in case the element is not the main element of the component.

Additionally, there was a DOM update bug associated with inserting text nodes, which has now been fixed.