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
No animation on modal mounting #607
Comments
This is a valid bug we need to investigate further. |
@virgofx hello! could i take a stab at this one? been wanting to contribute for a while, would investigate tomorrow after work! |
@devonjs go for it. There is a branch which updates the dev version of react in this project to 16. You'll probably need to branch off of that or something to see the issue since this only happens with react 16. |
I believe the issue is we need to force a repaint on the initial load once it applies the first class. It looks like |
There is an issue which was recently open with react-transition-group: reactjs/react-transition-group#216. Not sure if it is valid or not, but it seems similar to what we are experiencing and thus we may be able to benefit from the solution to it; regardless of whether it is an issue with react-transition-group or not |
@virgofx @TheSharpieOne Great, thanks for the direction on this issue. Will consider what you both mentioned above when approaching this! |
hmmm there seems to be a couple of things to consider for React 16:
ReactDOM.createPortal is such a big feature in React 16 that for this to play with React 16 and its future versions it should be used, what do you think? It also seems like CSSTransition got bundled into react-transition-group in the react documentation, not too sure if switching to CSSTransition would achieve better results, I'd have to do a little more research into it. |
#601 has the task of upgrading to portals, but to better maintain compatibility with react <16 the suggestion is to use |
@TheSharpieOne sent PR, I'll leave the |
I was gonna file this issue and reproduced it here. Also reproduces #360 |
To clarify, by having no animation on modal mounting are you saying that the modal instantly appears, or that it remains invisible? I'm experiencing an issue where my modal has a |
The fade class stays the entire time the modal exists. This is how bootstrap does it. An additional class is added to affect the opacity. |
@TheSharpieOne Any update on this? I see the commit referencing this issue 2 months ago is just one line long. I have set up modals a few times in react and want to give it a go but I see two separate pr's, one which is not merged. |
@Kielan Seems to be fixed in v5.0.0-alpha4, it appears to be a fade in and out on my iPhone |
I also believe this is fixed. There may be a few weird cases with large timeouts, but all of my use cases seem fixed. |
I can confirm that is fixed for me. |
Fixed in v5, closing. |
## Issue description
There is no fade in animation on Modal appearing, have you removed it?
The text was updated successfully, but these errors were encountered: