Fix static height remaining after _runWithTransitionsDisabled()
This commit is contained in:
parent
743597bc47
commit
a9d30b7e8a
1 changed files with 3 additions and 0 deletions
|
@ -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');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue