How to display a drop zone in an app bridge modal?

Hi!

I am trying to add a Modal in my Shopify embedded app. Since the Modal component is deprecated (https://polaris.shopify.com/components/deprecated/modal), I have to use the App bridge modal API (https://shopify.dev/docs/api/app-bridge-library/reference/modal)) as in the code bellow.

const fileUpload = !file && 

The drop zone is correctly rendered but I can not add file neither by clicking the button not dropping a file.

Somebody knows how to display a drop zone?

Thanks.
1 Like