surface.setContent
does not do anything when the surface is removed from the DOM in the next render-cycle
#673
Labels
When you call
surface.setContent
it sets boththis.content
andthis._contentDirty
on the Surface. In the nextcommit
it is then deployed to the DOM. However, when in the next render-cycle, the surface is not committed, but instead recalled, the value set bysetContent
is overridden bysurface.recall
. Later, when the surface is commited again and added to the DOM, not the last value set bysetContent
is shown, but instead the last DOM content is shown. This is a problem in therecall
function which should deal with the_contentDirty
case in some way.Original code:
Suggested fix:
I've tested it in my own environment and works perfectly. I'll create a pull request for it as well.
Cheers,
Hein
The text was updated successfully, but these errors were encountered: