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: reset values after animations and make snapshot only when necessary #1496

Merged
merged 1 commit into from
Jun 29, 2022

Conversation

WoLewicki
Copy link
Member

Description

PR adding logic of resetting screens props after transition animations since they are recycled afterwards and often have wrong alpha/transform then. Also added application of snapshot only if window is present which should mean that screen has been removed via JS navigation actions.

Test code and steps to reproduce

Mainly Test887.tsx with going to different modal and non-modal screens to see if they all work correctly.

Checklist

  • Included code example that can be used to test this change
  • Ensured that CI passes

Copy link
Member

@kkafar kkafar left a comment

Choose a reason for hiding this comment

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

lgtm

@WoLewicki WoLewicki merged commit 24393d3 into main Jun 29, 2022
@WoLewicki WoLewicki deleted the @wolewicki/fix-fabric-modals branch June 29, 2022 09:43
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.

2 participants