Bugfix/#67 list separator on last element #69
1 changed files with 2 additions and 2 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Add table
Reference in a new issue