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

[base-ui] Fix passing custom handlers to the root of Dialog #38745

Closed

Conversation

saeedShamloo
Copy link

@saeedShamloo saeedShamloo commented Aug 31, 2023

As you can see in the following picture there is a warning in the console by react-dom about custom event handlers on Dialog component:

Screenshot 2023-08-31 at 17 51 16 (2)

We can fix the warning by filtering the custom event handlers on the props that we are passing to the root component.

@mui-bot
Copy link

mui-bot commented Aug 31, 2023

Netlify deploy preview

https://deploy-preview-38745--material-ui.netlify.app/

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against 8d0957a

@saeedShamloo saeedShamloo deleted the custom-event-handlers-modal branch August 31, 2023 16:04
@saeedShamloo saeedShamloo restored the custom-event-handlers-modal branch August 31, 2023 16:05
@saeedShamloo saeedShamloo reopened this Aug 31, 2023
@saeedShamloo saeedShamloo marked this pull request as ready for review August 31, 2023 16:10
@saeedShamloo saeedShamloo force-pushed the custom-event-handlers-modal branch 2 times, most recently from 89934ec to 75eb6ef Compare August 31, 2023 20:45
@saeedShamloo saeedShamloo force-pushed the custom-event-handlers-modal branch from 75eb6ef to 8d0957a Compare August 31, 2023 20:56
@zannager zannager added the package: base-ui Specific to @mui/base label Sep 1, 2023
@zannager zannager requested a review from mnajdova September 1, 2023 06:11
@ZeeshanTamboli
Copy link
Member

Thank you for the pull request, but the issue was already addressed in #38868 and will be included in the upcoming release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: base-ui Specific to @mui/base
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants