mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 20:19:13 +00:00
move comment
This commit is contained in:
@@ -124,11 +124,11 @@ export default class WaTreeItem extends WebAwesomeElement {
|
||||
|
||||
await stopAnimations(this.childrenContainer);
|
||||
|
||||
// We can't animate from 'auto', so use the scroll height for now
|
||||
const duration = parseDuration(getComputedStyle(this.childrenContainer).getPropertyValue('--hide-duration'));
|
||||
await animate(
|
||||
this.childrenContainer,
|
||||
[
|
||||
// We can't animate from 'auto', so use the scroll height for now
|
||||
{ height: `${this.childrenContainer.scrollHeight}px`, opacity: '1', overflow: 'hidden' },
|
||||
{ height: '0', opacity: '0', overflow: 'hidden' }
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user