Skip to content

Conversation

@amarnath-cdr
Copy link

This Pull Request addresses the issue where TypeScript typings for the FormHelperText component were incorrectly stripping or not accounting for generic data-* attributes (like data-testid, data-custom-id, etc.) when used in a Material UI application.

The fix involves adding a dynamic index signature to the FormHelperTextOwnProps interface in packages/mui-material/src/FormHelperText/FormHelperText.d.ts.

The added signature is:

[dataAttr: `data-${string}`]: any;

@mui-bot
Copy link

mui-bot commented Nov 16, 2025

Netlify deploy preview

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

Bundle size report

Bundle Parsed size Gzip size
@mui/material 0B(0.00%) 0B(0.00%)
@mui/lab 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

Generated by 🚫 dangerJS against 6c84134

@mj12albert mj12albert closed this Nov 16, 2025
@zannager zannager added type: new feature Expand the scope of the product to solve a new problem. typescript labels Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: new feature Expand the scope of the product to solve a new problem. typescript

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants