Open Zetxus opened 3 weeks ago
Maybe the comments in https://github.com/Shopify/shopify-app-bridge/issues/334 will be useful for your case
@darrynten I'm actually just using SaveBar
by itself so it shouldn't affect the outcome.
It looks like the SaveBar attaches itself to the new document (from the max modal iframe) but the actions do not and are probably attached to the document below it (the app one). Lots of iframe juggling here, I wish they'd just remove them from the modals entirely 😔
Seems like a missed edge case because the max modal should absolutely be able to handle SaveBars as max modals are mostly used for WYSIWYG editors, which most of the time include save/discard actions.
same problem. Any fix ?
Describe the bug
Max modals seem to be able to have their own SaveBars. None of the other sizes work with them as it seems like the position to embed it gets shifted to the underlying page instead.
However, when you try to use a SaveBar in a max Modal, even though the SaveBar gets attached correctly to the header of the modal, none of the states are properly displayed - neither
loading
notdisabled
are properly reflected.To Reproduce
Steps to reproduce the behaviour:
Replace
app._index.tsx
content with the following short demo snippetExpected behaviour
I don't know what the idea was, but the way I see it we should be able to use the SaveBar in the modals. Think of all the apps that have big WYSIWYG editors and are now trying to migrate to v4.
Contextual information
Packages and versions
List the relevant packages you’re using, and their versions. For example:
@shopify/app-bridge-react
@4.1.3
@shopify/polaris
@12.0.0
Platform
Additional context
N/A