Material-ui: Material UI Autocomplete does not show errors when the error state is set

Created on 10 Dec 2019  路  2Comments  路  Source: mui-org/material-ui

  • [X ] The issue is present in the latest release.
  • [X ] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 馃槸


When I set the error attribute on the Autocomplete element, it doesn't appear to change to an error state

Expected Behavior 馃


The box should be highlighted in red with an error state

Steps to Reproduce 馃暪

https://codesandbox.io/s/material-demo-u7n3d

Steps:

  1. Include an autocomplete Material UI element
  2. Add the error state to it

Context 馃敠

I want to be able to show the user an error if they didn't fill out this form field

Your Environment 馃寧

| Tech | Version |
| ----------- | ------- |
| Material-UI | v4.7.0 |
| React | 16.8.6 |
| Material-UI Lab | 4.0.0-alpha.34 |

Autocomplete support

Most helpful comment

Put the error value into renderInput={params =>

All 2 comments

馃憢 Thanks for using Material-UI!

We use GitHub issues exclusively as a bug and feature requests tracker, however,
this issue appears to be a support request.

For support, please check out https://material-ui.com/getting-started/support/. Thanks!

If you have a question on StackOverflow, you are welcome to link to it here, it might help others.
If your issue is subsequently confirmed as a bug, and the report follows the issue template, it can be reopened.

Put the error value into renderInput={params =>

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chris-hinds picture chris-hinds  路  3Comments

ryanflorence picture ryanflorence  路  3Comments

reflog picture reflog  路  3Comments

anthony-dandrea picture anthony-dandrea  路  3Comments

pola88 picture pola88  路  3Comments