Fixed #6365 - animate-slidedown fails when a Tailwind prefix is used
parent
78b8c8330a
commit
55d4889d37
|
@ -44,6 +44,10 @@ export interface StyleClassOptions {
|
|||
* Style class to add when leave animation is completed.
|
||||
*/
|
||||
leaveToClass?: string | undefined;
|
||||
/**
|
||||
* Special class name to hide an element, only used in slide animation.
|
||||
*/
|
||||
hiddenClass?: string | undefined;
|
||||
/**
|
||||
* Whether to trigger leave animation when outside of the element is clicked.
|
||||
* @defaultValue false
|
||||
|
|
|
@ -43,9 +43,9 @@ const StyleClass = BaseStyleClass.extend('styleclass', {
|
|||
|
||||
if (binding.value.enterActiveClass.includes('slidedown')) {
|
||||
target.style.height = '0px';
|
||||
removeClass(target, 'hidden');
|
||||
removeClass(target, binding.value.hiddenClass || binding.value.enterFromClass);
|
||||
target.style.maxHeight = target.scrollHeight + 'px';
|
||||
addClass(target, 'hidden');
|
||||
addClass(target, binding.value.hiddenClass || binding.value.enterActiveClass);
|
||||
target.style.height = '';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue