diff --git a/src/components/animations/CollapseAnimation/CollapseAnimation.spec.ts b/src/components/animations/CollapseAnimation/CollapseAnimation.spec.ts index 4104dacf..fc427a1b 100644 --- a/src/components/animations/CollapseAnimation/CollapseAnimation.spec.ts +++ b/src/components/animations/CollapseAnimation/CollapseAnimation.spec.ts @@ -38,7 +38,6 @@ describe('CollapseAnimation.vue', () => { }; wrapper.vm.enter(testElement, () => { - expect(testElement.style.height).toBe('0px'); expect(testElement.style.opacity).toBe('1'); done(); }); diff --git a/src/components/animations/CollapseAnimation/CollapseAnimation.vue b/src/components/animations/CollapseAnimation/CollapseAnimation.vue index 3f7438a1..7c77f17f 100644 --- a/src/components/animations/CollapseAnimation/CollapseAnimation.vue +++ b/src/components/animations/CollapseAnimation/CollapseAnimation.vue @@ -31,7 +31,11 @@ export default { }, round: 1, easing: 'easeInOutCirc', - complete: done, + complete: () => { + el.style.height = null; + el.style.overflow = null; + done(); + }, }); }, beforeLeave(el: HTMLElement) {