From d9cdcbc7df6967c961d59821a23a294b3ddbfe40 Mon Sep 17 00:00:00 2001 From: Tarik1700 Date: Sat, 16 Mar 2024 14:05:08 +0100 Subject: [PATCH] bugfix: fixed animations not working correctly on TRANSITION.toggleable with tailwind preset --- components/lib/passthrough/tailwind/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/lib/passthrough/tailwind/index.js b/components/lib/passthrough/tailwind/index.js index c6f1262b3a..798ee70dd7 100644 --- a/components/lib/passthrough/tailwind/index.js +++ b/components/lib/passthrough/tailwind/index.js @@ -5,9 +5,9 @@ export const TRANSITIONS = { timeout: 500, classNames: { enter: 'max-h-0', - enterActive: '!max-h-40 overflow-hidden transition-all duration-500 ease-in-out', - exit: 'max-h-40', - exitActive: '!max-h-0 overflow-hidden transition-all duration-500 ease-in' + enterActive: '!max-h-[1000px] overflow-hidden transition-[max-height] duration-500 ease-in', + exit: 'max-h-[1000px]', + exitActive: '!max-h-0 overflow-hidden transition-[max-height] duration-500 ease-out' } }, overlay: {