From 5b68b91c85c9c88d1b0ac963f3e33a4c8752f086 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 27 Apr 2021 11:00:20 +0900 Subject: [PATCH] fix(collapse): wait for transition to finish to remove overflow --- src/components/collapse/Collapse.vue | 18 ++++++++++++++++-- src/components/collapse/collapse.unit.test.js | 7 ++++++- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/src/components/collapse/Collapse.vue b/src/components/collapse/Collapse.vue index fe6410c..0fa9010 100644 --- a/src/components/collapse/Collapse.vue +++ b/src/components/collapse/Collapse.vue @@ -26,8 +26,8 @@ stroke-linecap="round" fill="none" role="presentation" - class="stroke-2 w-5 h-5 transform transition-transform duration-200" :class="[ + 'stroke-2 w-5 h-5 transform transition-transform duration-200', iconLeft ? 'mr-2' : 'ml-2', { 'rotate-180': !collapsed } ]" @@ -42,7 +42,11 @@
@@ -53,6 +57,8 @@