mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
issue 662 (#672)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user