DomTemplate icon indicating copy to clipboard operation
DomTemplate copied to clipboard

Presence of data-template, without binding a list, should leave the parent "empty"

Open g105b opened this issue 3 years ago • 0 comments

When bindList is used, if the list is empty, the template parent will have all whitespace stripped so that CSS sees it as :empty.

This should be the case for simply having a data-template attribute on an element. Assuming there are no other children in the template parent, when the template item is removed from the DOM, the parent should have whitespace stripped so that if nothing is bound, css still sees the element as :empty.

g105b avatar Jul 15 '22 11:07 g105b