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
Maintain DOM tree when top bar is undefined in reframe #11998
base: main
Are you sure you want to change the base?
Conversation
/snapit |
a7e66a9
to
00fe30f
Compare
/snapit |
🫰✨ Thanks @sophschneider! Your snapshot has been published to npm. Test the snapshot by updating your "@shopify/polaris": "0.0.0-snapshot-20240509153439" |
00fe30f
to
c4cf479
Compare
/snapit |
🫰✨ Thanks @sophschneider! Your snapshot has been published to npm. Test the snapshot by updating your "@shopify/polaris": "0.0.0-snapshot-20240509173401" |
c4cf479
to
2318df4
Compare
/snapit |
🫰✨ Thanks @sophschneider! Your snapshot has been published to npm. Test the snapshot by updating your "@shopify/polaris": "0.0.0-snapshot-20240509180633" |
/snapit |
🫰✨ Thanks @sophschneider! Your snapshot has been published to npm. Test the snapshot by updating your "@shopify/polaris": "0.0.0-snapshot-20240510034702" |
2318df4
to
7c1af27
Compare
/snapit |
🫰✨ Thanks @sophschneider! Your snapshot has been published to npm. Test the snapshot by updating your "@shopify/polaris": "0.0.0-snapshot-20240510035701" |
WHY are these changes introduced?
Part of https://github.com/Shopify/polaris-backlog/issues/1610
Fixes https://github.com/Shopify/polaris-backlog/issues/1609
WHAT is this pull request doing?
Conditionally rendering the frame wrapper classes depending on the
topBar
prop was causing Frame's children to unmount whenFrame
's props changed. This was causing a bug for full screen pages in the admin because they changed the fullscreen state on unmount.Only changing classnames for the frame's wrapper classes ensure that the children do not unmount when
topBar
becomesundefined
How to 🎩
Analytics
Online store
🎩 checklist