Conversation
Netlify deploy previewhttps://deploy-preview-43555--material-ui.netlify.app/ Bundle size reportDetails of bundle changes (Toolpad) |
8517da2 to
546dddb
Compare
546dddb to
608c175
Compare
608c175 to
8066cce
Compare
8066cce to
10df2ad
Compare
10df2ad to
a36fbf4
Compare
a36fbf4 to
6fdf08c
Compare
|
@michaldudak this -const PopperTooltip = React.forwardRef(function PopperTooltip<
+const PopperTooltip = React.forwardRef<HTMLDivElement, PopperTooltipProps>(function PopperTooltip<
RootComponentType extends React.ElementType,
>(props: PopperTooltipProps<RootComponentType>, forwardedRef: React.ForwardedRef<HTMLDivElement>) {(source) But it seems to me like this breaks the polymorphic usage of the Is this the correct fix? |
6fdf08c to
47a4898
Compare
47a4898 to
d3c9745
Compare
|
Since we're casting the result of |
625b8c4 to
624ba8c
Compare
|
@michaldudak I tried the fix here, but more issues showed up, I'll have to dig deeper. I don't know how to apply the fix to this one, which uses a generic: https://github.com/mui/material-ui/pull/43555/files#diff-d20c7994b87da6016e5837861c4dbf679747074bf2706031cc9157de13ab056dR24 cc: @Janpot @aarongarciah in case you have some time this week to look into these issues. |
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
|
@DiegoAndai This seems to be the naive solution. Wouldn't that work? |
I believe so, we can solve it the same way by making the |
Thanks! I'll do it and update the PR |
5484b0b to
3e9fd9d
Compare
|
@DiegoAndai I just rebased on top of master and removed your commit. I need this PR to fix some stuff #43964 (comment) I'll try to apply the necessary changes. Let's see if we can land this PR today. |
3e9fd9d to
898ee95
Compare
|
@aarongarciah @Janpot I had to bring back my fix (this one): dd9c8fe and bb9f21b Seems to me that this particular problem can't be fixed with the approach in #43792, but instead is caused by something not working with forward ref inference and our polymorphic types after DefinitelyTyped/DefinitelyTyped#70361. Please correct me if I'm wrong. Because this issue is mainly inside mui-base, which is stale, and one material component that should be eventually removed, plus the components being casted anyways, I would merge this one to unblock the release. |
|
@DiegoAndai it's fine for me. I see we need to bring the changes in the docs Next.js config file because after |
Janpot
left a comment
There was a problem hiding this comment.
Seems to me that this particular problem can't be fixed with the approach in #43792, but instead is caused by something not working with forward ref inference and our polymorphic types after DefinitelyTyped/DefinitelyTyped#70361. Please correct me if I'm wrong.
Ok, I think I see what's happening, forwardRef infers PopperTooltipProps<React.ElementType> as props which includes the <details> element, which has a open property that can be undefined. The solution should be fine.
This PR contains the following updates:
^18.3.4->^18.3.618.3.4->18.3.6Configuration
📅 Schedule: Branch creation - "on sunday before 6:00am" in timezone UTC, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.