transitionend not working in Edge 18

This commit is contained in:
djmaze 2020-09-03 17:14:44 +02:00
parent e858685769
commit f90dbcc84b
2 changed files with 9 additions and 11 deletions

View file

@ -88,13 +88,11 @@ const
set: percent => setPercentWidth(percent),
end: () => {
if (container) {
progress.addEventListener('transitionend', () => {
if (container) {
container.hidden = true;
setTimeout(() => {container.remove();container=null;}, 200);
}
}, false);
setPercentWidth(100);
setTimeout(() => {
container.remove();
container = progress = null;
}, 600);
}
}
};