Skip to content
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

[FocusTrap] Restore the previously exported type from @mui/material #34601

Merged
merged 1 commit into from Oct 5, 2022

Conversation

michaldudak
Copy link
Member

#34216 inadvertently introduced a breaking change by renaming a type re-exported from @mui/material.
This caused an issue in MUI X (mui/mui-x#6308), as reported in #33966 (comment).

This PR restores the previously exported TrapFocusProps type in @mui/material. @mui/base continues to export the renamed FocusTrapProps, as intended.

Technically, this is a breaking change in relation to @mui/material 5.10.7 and 5.10.8, but not a breaking change in relation to earlier versions.

cc @flaviendelangle

@michaldudak michaldudak added package: material-ui Specific to @mui/material component: FocusTrap The React component. labels Oct 4, 2022
@mui-bot
Copy link

mui-bot commented Oct 4, 2022

No bundle size changes

Generated by 🚫 dangerJS against 9569bb2

@michaldudak michaldudak merged commit ac157e3 into mui:master Oct 5, 2022
@michaldudak michaldudak deleted the trapfocus-types-export branch October 5, 2022 07:44
alexfauquette pushed a commit to alexfauquette/material-ui that referenced this pull request Oct 14, 2022
@oliviertassinari oliviertassinari changed the title [TrapFocus] Restore the previously exported type from @mui/material [FocusTrap] Restore the previously exported type from @mui/material Oct 23, 2022
daniel-rabe pushed a commit to daniel-rabe/material-ui that referenced this pull request Nov 29, 2022
feliperli pushed a commit to jesrodri/material-ui that referenced this pull request Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: FocusTrap The React component. package: material-ui Specific to @mui/material
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants