Skip to content

[textfield] Typings for formHelperText slot missing data attributes #47230

@thany

Description

@thany

Steps to reproduce

Steps:

  1. Open this link to live example: https://stackblitz.com/edit/e8yxd8yt?file=src%2FDemo.tsx
  2. Observe the error in the editor.

Current behavior

There is an error on slotProps -> formHelperText -> any data attribute. This error doesn't occur for htmlInput.

Expected behavior

No error, data attributes should be added to the typings, as they are for other slotProps.

Context

It's important to remember that this is purely a typings issue. At run-time it works perfectly.

Your environment

npx @mui/envinfo
  System:
    OS: Windows 10 10.0.19045
  Binaries:
    Node: 22.21.0 - C:\Program Files\nodejs\node.EXE
    npm: 11.6.2 - C:\Program Files\nodejs\npm.CMD
    pnpm: Not Found
  Browsers:
    Chrome: 142.0.7444.135
    Edge: Chromium (141.0.3537.99)
    Firefox: 144.0.2 - C:\Program Files\Mozilla Firefox\firefox.exe

I'm using Firefox 144 (not that it matters)

Search keywords: formHelperText data attributes

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGreat for first contributions. Enable to learn the contribution process.scope: text fieldChanges related to the text field.type: bugIt doesn't behave as expected.typescript

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions