File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
packages/master-detail-layout/src Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -650,7 +650,7 @@ class MasterDetailLayout extends ElementMixin(ThemableMixin(PolylitMixin(LitElem
650650 * @private
651651 */
652652 __animate ( element , keyframes , options ) {
653- const animation = element . animate ( keyframes , options ) ;
653+ const animation = element . animate ( keyframes , { ... options , fill : 'forwards' } ) ;
654654
655655 this . __activeAnimations = this . __activeAnimations || [ ] ;
656656 this . __activeAnimations . push ( animation ) ;
@@ -670,6 +670,10 @@ class MasterDetailLayout extends ElementMixin(ThemableMixin(PolylitMixin(LitElem
670670 }
671671 this . removeAttribute ( 'transition' ) ;
672672 this . __clearOutgoing ( ) ;
673+ // Cancel any pending ResizeObserver rAF that captured stale state
674+ // during the animation — _finishTransition already applied the
675+ // correct post-transition state synchronously.
676+ cancelAnimationFrame ( this . __resizeRaf ) ;
673677 if ( this . __transitionResolve ) {
674678 this . __transitionResolve ( ) ;
675679 this . __transitionResolve = null ;
You can’t perform that action at this time.
0 commit comments