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 }}
Repository navigation
Commit bf91f4c
Browse filesBrowse the repository at this point in the historyBrowse files
fix(media): forward MediaViewer's ref under React 18
MediaViewer read ref from its props, which only React 19 passes to a
function component; under React 18, inside the peer range, a host's
ref never reached the dialog. MediaViewer is now a forwardRef
component that hands the ref to the <dialog>, and its props type
leaves ref to forwardRef.
0 commit comments