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
{{ message }}
This repository was archived by the owner on Sep 30, 2025. It is now read-only.
Attempting to use functional components as an activator for Modal with Polaris11.13.0+results in Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
Appears to have been introduced with #10086
Could be related to #10337
Expected behavior
Functional components should continue to work without React errors or warnings.
Actual behavior
Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
Steps to reproduce the problem
Copy the DefaultModalExample from the Modal Polaris documentation.
Attempt to use the ModalExample in a unit test or browser.