starplate icon indicating copy to clipboard operation
starplate copied to clipboard

is it possible to update the container element's attributes/properties?

Open fantasia949 opened this issue 9 years ago • 1 comments

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

as the container element, and want to modify its class.

fantasia949 avatar Jan 03 '16 07:01 fantasia949

@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.

jwerle avatar Jan 07 '16 14:01 jwerle