Hi all, I’m looking for a solution to prevent default behaviour of modal close
In a Shopify App Bridge modal, is there a way to prevent the default close behavior when clicking the backdrop or the close (×) icon?
I’ve checked the Shopify documentation but couldn’t find any props or methods to stop this behavior.
My use case is that the modal contains a form with unsaved changes, and I want to ensure the user explicitly interacts with Save or Discard buttons before closing. However, right now the modal closes immediately when the backdrop or close icon is clicked, which skips this flow.
Is it possible to prevent the modal from closing automatically on backdrop/close icon clicks?