react-modal icon indicating copy to clipboard operation
react-modal copied to clipboard

Animation on close not properly triggered with delay

Open nealoke opened this issue 7 years ago • 1 comments

Summary:

Steps to reproduce:

  1. Open the codesandbox
  2. Close the modal by clicking the background
  3. See no animation when closing

Also when I do this in my app and record it, you see that it adds the class but not for the delay (400ms) specified as it does with the after open before close

Expected behavior:

Should add a delay to the actual unmounting (working) and add the class on the beginning of the delay for animation. Currently it waits for the delay, adds the class and directly unmounts

nealoke avatar Nov 05 '18 16:11 nealoke

In case somebody else having the same issue this might help.

rawatnaresh avatar Mar 27 '20 11:03 rawatnaresh