-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
Description
✔ BUGS → This form is required:
FIX seems to be a "TODO" commented here:
Semantic-UI-React/src/modules/Modal/Modal.js
Line 285 in 7ac06c4
| // TODO: remove when ref with "as" is resolved: PR #2306 |
Steps
<Modal defaultOpen={true} as={(props) => <div {...props} />} />
Expected Result
Should work without throwing an error.
Actual Result
index.js:2178 Warning: Stateless function components cannot be given refs. Attempts to access this ref will fail.
Check the render method of `Modal`.
in as (created by Modal)
Version
0.78.2