Skip to content

Conversation

bartoszlorek
Copy link
Contributor

@bartoszlorek bartoszlorek commented Feb 14, 2022

Currently both onEntryTransitionEnd and onExitTransitionEnd callbacks aren't fired when environment doesn't support transition events, e.g. the JSDOM. It requires additional mocking in every test which is not obvious. Furthermore, it doesn't work in older browsers (minor).

Comment on lines -77 to -79
wrapper.find('[role="dialog"]').simulate('transitionEnd', {
propertyName: 'transform',
});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...and the simulation is no longer needed to just open/close a dialog.

Copy link
Contributor

@coderitual coderitual left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thx @bartoszlorek

@bartoszlorek bartoszlorek merged commit 696e4a4 into master Feb 15, 2022
@bartoszlorek bartoszlorek deleted the dialog-fix-unimplemented-transition-end-event branch February 15, 2022 13:21
@bartoszlorek bartoszlorek mentioned this pull request Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants