Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
Dialog
unmounting problem due to incorrect transitioncancel
e…
…vent in the `Transition` component on Android (#2071) * remove `transitioncancel` logic On Desktop Sarai, Chrome, and on mobile iOS Safari the `transitioncancel` is never called on outside click of the Dialog. However, on mobile Android Chrome it _is_ called, and the `transitionend` is never triggered for _some_ reason. According to the MDN docs: > If the transitioncancel event is fired, the transitionend event will not fire. > > — https://developer.mozilla.org/en-US/docs/Web/API/Element/transitioncancel_event When testing this, I never got into the `transitionend` when I got into the `transitioncancel` first. But, once I removed the `transitioncancel` logic, the `transitionend` code _was_ being called. The code is now both simpler, and works again. The nice part is that we never did anything with the `cancel` event. We marked it as done using the `Reason.Cancelled` and that's about it. * cleanup transition completion `Reason` * update changelog
- Loading branch information
1 parent
5ef5cf9
commit a6dea8a
Showing
4 changed files
with
25 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters