-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Modal][base] Drop component prop #37058
Conversation
Netlify deploy previewhttps://deploy-preview-37058--material-ui.netlify.app/ Bundle size report |
9a924ae
to
8e41846
Compare
8e41846
to
9c640b4
Compare
ac4a911
to
c83ecea
Compare
@@ -91,7 +90,7 @@ const Modal = React.forwardRef(function Modal<RootComponentType extends React.El | |||
slots = {}, | |||
...other | |||
} = props; | |||
|
|||
const manager = managerProp as any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is temporary. I think there is some type error in this file. For example,
we should change
const modal = React.useRef<{
modalRef?: typeof modalRef.current;
mountNode?: typeof mountNodeRef.current;
}>({});
to
const modal = React.useRef<{
mount?: Element;
modalRef?: Element;
}>({});
to match the type of methods provided by ModalManager
. I'd rather do these changes in a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird. But yes, I agree, let's solve this in a separate PR. Could you just add a TODO comment above this line explaining what is it for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Part of #36679