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