tomchentw / react-toastr

React.js toastr component
https://tomchentw.github.io/react-toastr/
MIT License
619 stars 112 forks source link

Not closing after timeout #107

Closed amit-mn closed 7 years ago

amit-mn commented 7 years ago

I have using this in my project, but toastr is not closing after timeout. And also close button not working. I am using react@15.6.1 and react-toastr@2.8.2

MickWang commented 7 years ago

use react-toastr@2.6.0 and it works.

amit-mn commented 7 years ago

Not working with react-toastr@2.6.0 also. Same issue coming.

ddc22 commented 7 years ago

Why is this issue happening?

ddc22 commented 7 years ago

Found the reason! You have to include "animate.min.css" as well as toastr.min.css

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/2.1.3/toastr.min.css">