#67 Don´t set border of last item

This doesn´t work completly yet, as the border also does not get "late added" when there actually spawns a new list item afterwards...
This commit is contained in:
Serraniel 2020-10-07 21:19:14 +02:00
parent 9f75cb7049
commit f6c7be3e51
Signed by: Serraniel
GPG key ID: 3690B4E7364525D3

View file

@ -19,11 +19,11 @@ function addListHorizontalSeparators(node) {
}
// are we target tag?
if (node.tagName === targetTagName) {
if (node.tagName === targetTagName && typeof element.nextSibling !== "undefined") {
updateFunc(node);
} else {
// find items -> all
let requestItems = node.querySelectorAll('md-list-item');
let requestItems = node.querySelectorAll('md-list-item:not(:last-child)');
// update borders
requestItems.forEach(item => {