fix scope of "remove button" on collection

This commit is contained in:
Julien Fastré 2018-06-05 09:43:58 +02:00
parent f6f1b504bd
commit a6496884e1

View File

@ -103,7 +103,7 @@ window.addEventListener('load', function() {
}
for (let i = 0; i < collections.length; i ++) {
let entries = collections[i].querySelectorAll('li');
let entries = collections[i].querySelectorAll(':scope > li');
for (let j = 0; j < entries.length; j ++) {
initializeRemove(collections[i], entries[j]);