starplate
starplate copied to clipboard
is it possible to update the container element's attributes/properties?
When I render the element the first time by calling View.render(), it works as expected. But when I update the element's attributes by calling View.update(), only child elements are updated properly, but not for the container element's attributes.
It becomes the problem if I use strict structure tags like
@fantasia949 Sorry for the delay. Unfortunately, this is true and a side effect of how starplate handles patching. Starplate treats the root DOM element as a container and does not apply patches directly to it. It instead patches children only.