-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[pickers] Too much recursion error when using MobileDatePicker inside a IonModal component #13556
Comments
@LukasTy I am not sure if we can do something about this. For some reason ionic seems to manually sets focus on an element. Wouldn't that be an issue with iconic then? |
@LukasTy Are we still triaging this issue? |
I'll add it to the board for now |
Hello @m-zaharieva. slotProps={{
dialog: {
disableEnforceFocus: true,
}
}} P.S. You are defining your All the changes I've done:
Does it help you solve the problem? 🤔 |
The issue has been inactive for 7 days and has been automatically closed. |
Steps to reproduce
Link to live example: (required)
I have created this repository, reproducing the problem I am facing:
https://github.com/m-zaharieva/mui-mobile-date-picker-issue
Steps:
Current behavior
the console shows multiple errors:
Uncaught InternalError: too much recursion
focusLastDescendant overlays.js:124
trapShadowFocus overlays.js:271 ....
Expected behavior
To select the clicked date with no errors on the console.
Context
I am developing a mobile application with ionic, react and MUI. I have a form, inside a modal, that has a field for month picking.
But @mui Mobile Date Picker inside Modal is causing an too much recursion. I tested it outside the modal component and it does not have this behavior.
Your environment
npx @mui/envinfo
Search keywords: mobiledatepicker, ionic, react, recursion error,
Search keywords:
The text was updated successfully, but these errors were encountered: