Modal now generates React warning using a function component as activator #10493
Labels
Bug
Something is broken and not working as intended in the system.
Component
Priority: Medium
Non-blocking regression, noticable inconcistency, or important feature
Issue summary
Attempting to use functional components as an
activator
forModal
with Polaris11.13.0+
results inFunction 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
Default
ModalExample from the Modal Polaris documentation.Specifications
11.19.0
The text was updated successfully, but these errors were encountered: