set data-component attributes only to component root nodes
fix invalidated component rerendering