From a0df846493d89be9f5d6ed4d85c5340832458c30 Mon Sep 17 00:00:00 2001 From: Jake Patterson Date: Mon, 14 Feb 2022 21:08:26 +0500 Subject: [PATCH] issue 662 (#672) --- src/components/details/details.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/details/details.ts b/src/components/details/details.ts index 7a916074c..3404df2af 100644 --- a/src/components/details/details.ts +++ b/src/components/details/details.ts @@ -113,7 +113,7 @@ export default class SlDetails extends LitElement { // Show emit(this, 'sl-show'); - await stopAnimations(this); + await stopAnimations(this.body); this.body.hidden = false; const { keyframes, options } = getAnimation(this, 'details.show'); @@ -125,7 +125,7 @@ export default class SlDetails extends LitElement { // Hide emit(this, 'sl-hide'); - await stopAnimations(this); + await stopAnimations(this.body); const { keyframes, options } = getAnimation(this, 'details.hide'); await animateTo(this.body, shimKeyframesHeightAuto(keyframes, this.body.scrollHeight), options);