Fix static height remaining after _runWithTransitionsDisabled()

This commit is contained in:
Abe Jellinek 2024-01-04 10:34:33 -08:00 committed by Dan Stillman
parent 743597bc47
commit a9d30b7e8a

View file

@ -257,6 +257,9 @@
// Need to wait a tick before re-enabling - forcing style recalculation isn't enough here
requestAnimationFrame(() => {
this.classList.remove('disable-transitions');
// --open-height is usually cleared when the animation ends, but we had animations disabled.
// Clear it manually.
this.style.setProperty('--open-height', 'auto');
});
}