<>
<s-button commandFor="info-modal" command="--show">
Show product info
</s-button>
<s-modal id="info-modal" heading="Product information">
<s-text>
This product is currently out of stock and cannot be ordered.
</s-text>
<s-button slot="secondary-actions" commandFor="info-modal" command="--hide">
Close
</s-button>
</s-modal>
</>
Expected :
Close button should hide modal, but it does nothing
What I’ve tried :
Tried to remove slot params from the s-button, but i ran into another issue
the buttons are now rendered in two places, in the modal footer (like it was with the slot), and at the place they should render logically without the slot props
the buttons rendered in the footer still doesn’t works
the other ones work
But this is not a satisfying fix, as it is confusing for the user and does not follow Shopify guidelines
So is it expected to not work on mobile yet ? Or is there something to be done ?
@Liam-Shopify (cc: @Fio and @Anthony_Frehner for extra visibility) I’ve had some of my app users contact me noticing this issue! They’re not really happy with “it’s a shopify bug” as an explanation. Is this getting fixed soon?
In case the team is having trouble replicating, you can replicate my app conditions by putting the following in the app.additional.tsx of the react-router template and loading it up in the mobile app: