move comment

This commit is contained in:
Cory LaViska
2024-06-04 10:41:18 -04:00
parent f94ef27a0b
commit 0900b012af

View File

@@ -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' }
],