Skip to content
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

fix(modal): remove visual 'twitch' when closing #4295

Conversation

maxokorokov
Copy link
Member

Twitch was caused by removing classes/styles from the <body> too early after result promise was resolved, but animation was potentially on-going.
Now the cleanup is done only after BOTH result promise is resolved and (hidden) event was emitted on animation completion.

Fixes #4293

Twitch was caused by removing classes/styles from the `<body>` too early after `result` promise was resolved, but animation was potentially on-going.
Now the cleanup is done only after BOTH `result` promise is resolved and `(hidden)` event was emitted on animation completion.

Fixes ng-bootstrap#4293
@maxokorokov maxokorokov force-pushed the modal/fix/closing-scrollbar-twitch branch from 6e3df6b to 935f918 Compare March 24, 2022 12:57
@maxokorokov maxokorokov reopened this Mar 24, 2022
@maxokorokov maxokorokov merged commit 15246f2 into ng-bootstrap:master Mar 31, 2022
maxokorokov added a commit that referenced this pull request Apr 7, 2022
Twitch was caused by removing classes/styles from the `<body>` too early after `result` promise was resolved, but animation was potentially on-going.
Now the cleanup is done only after BOTH `result` promise is resolved and `(hidden)` event was emitted on animation completion.

Fixes #4293
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Little "twitch" when closing a modal
1 participant