Use setTimeout for transition patch Fixes #648 (#656)

This commit is contained in:
narcolepticinsomniac 2019-01-29 11:14:07 -05:00 committed by GitHub
parent 1bdd0512ae
commit b18d062d51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -462,13 +462,10 @@ const APPLY = (() => {
transition: none !important;
}
`)
.then(() => {
// repaint
// eslint-disable-next-line no-unused-expressions
document.documentElement.offsetWidth;
removeStyle({id: 0});
document.documentElement.classList.remove(className);
});
setTimeout(() => {
removeStyle({id: 0});
document.documentElement.classList.remove(className);
});
}
function getStyleId(el) {