-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TextField] Display helperText on focus only #19861
Comments
I can take this one, if nobody is working on it. |
@AlexAndriyanenko Thanks for the interest in the issue. While I think that @Floriferous can already solve his problem with the current API and a form library, we have recently make a new module public: |
What's the status of this? |
@gap777 Missing documentation for the public |
I have added a doc page for |
I created a PR to add a section for |
For me |
There may already be a nice way to do this, but I couldn't find it.
I'd like to be able to display an Input's FormHelperText only if the input is focused. It should however always display the helperText if it is an error (and override the helperText).
I believe these are the main possible states:
error: true
, display the error helperTexterror: false
, and input is focused: display the helperTexterror: false
, and input is not focused: don't display the helperTexterror: false
, and input is not focused, but something likealwaysDisplay: true
is set on theFormHelperText
component, then display the helperTextExcluded states:
' '
) helperText provided, show placeholder space for a potential helperText laterRelated to #2474
Maybe the component's API could be revisited to handle these use cases more easily? Make it easier to pass in helperText, and errorHelperText together for example?
The text was updated successfully, but these errors were encountered: