Modal events don't work on React 19

Hello,

On React 19 (did not try on older version) none of the modal events work. To reproduce the issue:

<s-modal onHide={() => alert('HIDE')} onAfterHide={() => alert('AFTER HIDE')}>

</s-modal>

Then open/hide the modal. The same happens for the two show and afterShow events.

Thanks!

Thanks for reporting! I was able to confirm here https://codesandbox.io/p/devbox/polaris-wc-react-template-forked-lywn3f?workspaceId=ws_2hwbDQnoDWqZjgYjLNSEoC

We’ll let you know when we have updates to share.

For reference @Anthony_Frehner , none of the Popover events are working neither.