Skip to content

[modal] Replace custom findIndexOf with findIndex#48827

Merged
ZeeshanTamboli merged 1 commit into
mui:masterfrom
ZeeshanTamboli:modalmanager-replace-custom-findIndexOf-with-findIndex
Jul 21, 2026
Merged

[modal] Replace custom findIndexOf with findIndex#48827
ZeeshanTamboli merged 1 commit into
mui:masterfrom
ZeeshanTamboli:modalmanager-replace-custom-findIndexOf-with-findIndex

Conversation

@ZeeshanTamboli

@ZeeshanTamboli ZeeshanTamboli commented Jul 18, 2026

Copy link
Copy Markdown
Member

Replaces the custom findIndexOf helper in ModalManager with the native Array.prototype.findIndex, simplifying the implementation without changing behavior.

@ZeeshanTamboli ZeeshanTamboli added scope: modal Changes related to the modal. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. labels Jul 18, 2026
@code-infra-dashboard

Copy link
Copy Markdown

Deploy preview

https://deploy-preview-48827--material-ui.netlify.app/
QR code for https://deploy-preview-48827--material-ui.netlify.app/

Bundle size

Bundle Parsed size Gzip size
@mui/material ▼-46B(-0.01%) ▼-42B(-0.03%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/private-theming 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes


Check out the code infra dashboard for more information about this PR.

@ZeeshanTamboli
ZeeshanTamboli marked this pull request as ready for review July 18, 2026 12:56
@ZeeshanTamboli
ZeeshanTamboli merged commit 54951e5 into mui:master Jul 21, 2026
20 checks passed
@ZeeshanTamboli
ZeeshanTamboli deleted the modalmanager-replace-custom-findIndexOf-with-findIndex branch July 21, 2026 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: modal Changes related to the modal. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants