Skip to content

[TextField] On IE, the browser-specific X to clear the text field's contents does not trigger onChange events. #4928

@lawrence-yu

Description

@lawrence-yu

Problem description

On Internet Explorer, a black X shown on the right end of a TextField component if there is some text present. Clicking on this X is supposed to clear the contents of the text field.

On a controlled TextField component, clicking on this X does not fire an onChange event. The text will disappear after clicking it, but clicking elsewhere causes the old value to reappear.

For uncontrolled TextField components, the component behaves normally.

Steps to reproduce

  1. Using Internet Explorer
  2. Go to http://www.material-ui.com/#/components/text-field
  3. Go to the Controlled Example.
  4. Type some text in the TextField.
  5. With the focus in the TextField, a black X should be available. Click on it.
  6. Observe that the text disappears.
  7. Click outside of the TextField.
  8. Observe that the previous text reappears.

Versions

  • Material-UI: ^15.0.0
  • React: ^15.0.0
  • Browser: Internet Explorer

Metadata

Metadata

Assignees

No one assigned

    Labels

    external dependencyBlocked by external dependency, we can’t do anything about it.scope: text fieldChanges related to the text field.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions