#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:
parent
9f75cb7049
commit
f6c7be3e51
|
@ -19,11 +19,11 @@ function addListHorizontalSeparators(node) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// are we target tag?
|
// are we target tag?
|
||||||
if (node.tagName === targetTagName) {
|
if (node.tagName === targetTagName && typeof element.nextSibling !== "undefined") {
|
||||||
updateFunc(node);
|
updateFunc(node);
|
||||||
} else {
|
} else {
|
||||||
// find items -> all
|
// find items -> all
|
||||||
let requestItems = node.querySelectorAll('md-list-item');
|
let requestItems = node.querySelectorAll('md-list-item:not(:last-child)');
|
||||||
|
|
||||||
// update borders
|
// update borders
|
||||||
requestItems.forEach(item => {
|
requestItems.forEach(item => {
|
||||||
|
|
Loading…
Reference in a new issue