handleUpdate may alter/add an entry which needs to be sorted
This commit is contained in:
parent
68165e8fa2
commit
1d0ca613f9
|
@ -544,7 +544,7 @@ function handleUpdate(style, {reason, method, codeIsUpdated} = {}) {
|
|||
if ((reason === 'update' || reason === 'install') && entry.matches('.updatable')) {
|
||||
handleUpdateInstalled(entry, reason);
|
||||
}
|
||||
filterAndAppend({entry}).then(sorter.updateStripes);
|
||||
filterAndAppend({entry}).then(sorter.update);
|
||||
if (!entry.matches('.hidden') && reason !== 'import') {
|
||||
animateElement(entry);
|
||||
requestAnimationFrame(() => scrollElementIntoView(entry));
|
||||
|
|
|
@ -136,8 +136,8 @@ const sorter = (() => {
|
|||
const renderBin = document.createDocumentFragment();
|
||||
sorted.forEach(({entry}) => renderBin.appendChild(entry));
|
||||
installed.appendChild(renderBin);
|
||||
updateStripes();
|
||||
}
|
||||
updateStripes();
|
||||
}
|
||||
|
||||
function updateStripes() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user