bug: console error from PortalInner [React 19]

Author: jugglingcatsCreated Oct 19, 2024Updated Sep 8, 2025
Labelsbugchore

Bug Report

Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release. Error Component Stack
    at PortalInner (semantic-ui-react.js?v=fda6e902:4971:21)
    at Portal (semantic-ui-react.js?v=fda6e902:5015:24)
    at Modal (semantic-ui-react.js?v=fda6e902:6304:23)

Steps

Use of Modal in React 19 (release candidate) project.

Expected Result

No errors.

Actual Result

Error as above.

Version

3.0.0-beta.2

Testcase

https://codesandbox.io/p/sandbox/semantic-ui-react-forked-st8pzq

Source: Semantic-Org/Semantic-UI-React