Skip to content

Inconsistency on disabled textfields rendered by dialogs or tabindex -1 containers #49961

Not planned

Description

@jrojas-qventus

Steps to reproduce

Steps:

  1. Open this link to live example: https://codesandbox.io/p/sandbox/wtpgxg (Please use chrome and firefox to check the different behaviors)
  2. Using Chrome click on the disabled TextField which label is "Disabled when tab index -1"
  3. The textfield will render a blinking caret for a textfield that is disabled

Extra steps
This is also happening on MUI's textfield documentation because it contains tabindex="-1" skip-link targets
https://mui.com/material-ui/react-text-field/#form-props

  1. Using google chrome go to https://mui.com/material-ui/react-text-field/#form-props
  2. Click on a disabled textfield
  3. Check that the caret still shows up even though the text field is disabled.

This doesn't happen on firefox.

Current behavior

A blinking caret renders on a disabled textfield when it should not. Creating an inconsistency between how a product looks on firefox vs how it looks on chrome.

Expected behavior

A disabled textfield should not allow users to click on it, neither visually display an indication of it being clicked (showing the blinking caret on something that is supposedly disabled)

Context

I was working on a Dialog and there I needed to implement an Autocomplete that uses a textfield as a displayable input. After I implemented the logic and merged my code I was told by product that clicking on the disabled Autocomplete (also happens with a bare textfield) shows the blinking cursor even though the autocomplete was disabled. I never noticed it because I use Firefox when developing, but my product manager uses Chrome.

Your environment

npx @mui/envinfo
No issues found when working on Firefox
Issues found when working on Google Chrome
Google LLC
Copyright 2026 Google LLC. All rights reserved.
Google Chrome	158.0.8127.88 (Official Build) (arm64) 
Revision	0cefb18236a23db1ebb6b2bc040fbbaf8cbe759e-refs/branch-heads/8127_36@{#32}
OS	macOS Version 26.5.2 (Build 25F84)
JavaScript	V8 15.8.62.31
User Agent	Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/158.0.0.0 Safari/537.36
Command Line	/Applications/Google Chrome.app/Contents/MacOS/Google Chrome --origin-trial-disabled-features=CanvasTextNg|WebAssemblyCustomDescriptors --restart --restart --flag-switches-begin --flag-switches-end
Executable Path	/Applications/Google Chrome.app/Contents/MacOS/Google Chrome


 System:
    OS: macOS 26.5.2
  Binaries:
    Node: 22.23.4 - /Users/juanrojas/Library/Caches/fnm_multishells/1775_1793722090999/bin/node
    npm: 10.9.9 - /Users/juanrojas/Library/Caches/fnm_multishells/1775_1793722090999/bin/npm
    pnpm: 10.32.1 - /Users/juanrojas/Library/Caches/fnm_multishells/1775_1793722090999/bin/pnpm
  Browsers:
    Chrome: 158.0.8127.88
    Edge: Not Found
    Firefox: Not Found
    Safari: 27.2
  npmPackages:
    @emotion/react: 11.14.0 => 11.14.0 
    @emotion/styled: 11.14.1 => 11.14.1 
    @mui/icons-material: 7.3.2 => 7.3.2 
    @mui/material: 7.3.11 => 7.3.11 
    @mui/x-charts: 9.6.0 => 9.6.0 
    @mui/x-data-grid: 8.27.1 => 8.27.1 
    @mui/x-date-pickers: 8.11.1 => 8.11.1 
    @mui/x-tree-view: 8.11.1 => 8.11.1 
    @types/react: 19.2.14 => 19.2.14 
    react: 19.2.4 => 19.2.4 
    react-dom: 19.2.4 => 19.2.4 
    typescript: 5.9.3 => 5.9.3 

Search keywords: text field, disabled, caret

Activity

  1. added
    status: waiting for maintainer
    on Dec 1, 2026
  2. jrojas-qventus commented on Dec 1, 2026

    @jrojas-qventus
    Author

    https://issues.chromium.org/issues/581932200

    Will be fixed by Chrome on their next release. Don't know if any maintainer wants to give it a check and debate if it's worth working towards having an in-library solution for this or if to rely on how browsers handle this situation.

  3. silviuaavram commented on Dec 2, 2026

    @silviuaavram
    Member

    Hi! If it's getting fixed on Chrome side we can leave this as is. Thanks!

  4. github-actions commented on Dec 2, 2026

    @github-actions
    Contributor

    This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
    Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.


    @jrojas-qventus Thanks again for creating this issue! If you have a moment, we would love to hear your thoughts on how we handled it with this short feedback form.

  5. removed
    status: waiting for maintainer
    on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions