Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

animate-slidedown fails when a Tailwind prefix is used #6365

Closed
cagataycivici opened this issue Sep 9, 2024 · 0 comments
Closed

animate-slidedown fails when a Tailwind prefix is used #6365

cagataycivici opened this issue Sep 9, 2024 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@cagataycivici
Copy link
Member

Add hiddenClass option to define the class name that hides the element, also the class to add/remove should default to;

 if (binding.value.enterActiveClass.includes('slidedown')) {
      target.style.height = '0px';
      removeClass(target, binding.value.hiddenClass || binding.value.enterFromClass);
      target.style.maxHeight = target.scrollHeight + 'px';
      addClass(target, binding.value.hiddenClass || binding.value.enterFromClass;
      target.style.height = '';
  }
@cagataycivici cagataycivici self-assigned this Sep 9, 2024
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Sep 9, 2024
@cagataycivici cagataycivici added this to the 4.0.6 milestone Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

1 participant