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

Toast animation is not working #2744

Open
abaksha-sc opened this issue May 5, 2023 · 1 comment
Open

Toast animation is not working #2744

abaksha-sc opened this issue May 5, 2023 · 1 comment
Labels

Comments

@abaksha-sc
Copy link

abaksha-sc commented May 5, 2023

  • components: Toast
  • reactstrap version 9.1.9
  • import method es
  • react version 18.2.0
  • bootstrap version 5.2.3

What is happening?

Toast has prop fade which is true by default and means (as I understand) the animation.
But it's not working (even in documentation).

What should be happening?

Toast should appear with animation

Steps to reproduce issue

  1. Open the fiddle
  2. Click button "Toggle toast"

Code

https://stackblitz.com/edit/reactstrap-aauune?file=Example.js

Additional

Seems like prop transition.timeout just delays the appearing instead of to make animation longer.
Here is an example with timeout: 1000: https://stackblitz.com/edit/reactstrap-t1eesr?file=Example.js

@illiteratewriter
Copy link
Member

I am not sure what is causing this at the moment. Seems like the class toast is causing some issues. On removing the class toast from Toast.js, everything's working as expected.

davidlyons added a commit to davidlyons/reactstrap that referenced this issue Sep 15, 2023
davidlyons added a commit to davidlyons/reactstrap that referenced this issue Sep 15, 2023
davidlyons added a commit to davidlyons/reactstrap that referenced this issue Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants