Discard confirmation simply doesn't work in s-app-window

it just doesn’t work. Confirmation doesn’t appear

<s-app-window id={id} src="/iframes/offerComponentConfig.html" />
// offerComponentConfig.html
<s-page heading="kek">
  <form id="settings-form" data-save-bar data-discard-confirmation>
    <s-text-field label="Store Name" name="storeName"></s-text-field>
    <s-checkbox label="Enable notifications" name="notifications"></s-checkbox>
  </form>
</s-page>

What is the point to have “data-discard-confirmation”?

I’d suggest posting some more info, perhaps some code etc and full reproduction steps.

U can take a look now. I’ve updated my post
P.S. This is really annoying, guys. Why are u forcing people to use shopify web-components if they are not simply ready to be used