ui: fix training_detail page expand

This commit is contained in:
undefined committed 2021-11-29 22:51:24 +08:00
1 parent d0bea74645
commit 4918f41eac
2 files changed
+2 -2

No files matched your search

@@ -11,7 +11,7 @@ async function handleSection(ev, type: string) {
} else {
await slideUp($detail, 300, { opacity: 1 }, { opacity: 0 });
}
$section.addClass(`${type}d`);
$section.addClass(type === 'expand' ? 'expanded' : 'collapsed');
$section.removeClass(type === 'expand' ? 'collapsed' : 'expanded');
$section.removeClass('animating');
}