You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Card with DatePicker in a Popover on an app bridge Modal (though the type of PopOver content itself is immaterial).
This issue is that when the PopOver is activated, the Popover content is hidden behind the Modal.
Expected behavior
The Popover content should be visible and appear over the Modal.
Actual behavior
When activated, the Popover content is hidden behind the app bridge Modal:
When I hide the Modal via Chrome dev tools, you can see the hidden Popover content:
Apparently there are two separate divs with the same id=PolarisPortalsContainer. One appears to be associated with the App Bridge, and the other for the app extension itself. Seems like this use case is related to the Popover portal being created in the app's PolarisPortalsContainer vs the Modal's PolarisPortalsContainer.
I tried messing around with z-index and portals, but didn't get anywhere.
However, I tried to create a codesandbox with the reproducible case, but I got a "TypeError
a.show is not a function" error from the '@shopify/app-bridge-react' Modal.
Summary
I have a Card with DatePicker in a Popover on an app bridge Modal (though the type of PopOver content itself is immaterial).
This issue is that when the PopOver is activated, the Popover content is hidden behind the Modal.
Expected behavior
The Popover content should be visible and appear over the Modal.
Actual behavior
When activated, the Popover content is hidden behind the app bridge Modal:
When I hide the Modal via Chrome dev tools, you can see the hidden Popover content:
Apparently there are two separate divs with the same id=PolarisPortalsContainer. One appears to be associated with the App Bridge, and the other for the app extension itself. Seems like this use case is related to the Popover portal being created in the app's PolarisPortalsContainer vs the Modal's PolarisPortalsContainer.
I tried messing around with z-index and portals, but didn't get anywhere.
Steps to reproduce
The issue is easily reproducible.
@shopify/app-bridge-react: ^4.1.3
@shopify/polaris: 13.0.0
However, I tried to create a codesandbox with the reproducible case, but I got a "TypeError
a.show is not a function" error from the '@shopify/app-bridge-react' Modal.
So here's the reproducible test case code:
Are you using React components?
Yes
Polaris version number
13.0.0
Browser
Chrome: 124.0.6367.62
Device
MacBook Pro (Intel) with macOS 14.3.1
The text was updated successfully, but these errors were encountered: