-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
[Stepper] Step header is still in error when hasError is set to false #14333
Labels
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Comments
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Nov 30, 2018
The `hasError` input allows people to override the error state of a step, however we currently ignore falsy values because of an incorrect ||. These changes also fix one of the test fixtures where an error was being swallowed silently. Fixes angular#14333.
mmalerba
pushed a commit
that referenced
this issue
Dec 3, 2018
The `hasError` input allows people to override the error state of a step, however we currently ignore falsy values because of an incorrect ||. These changes also fix one of the test fixtures where an error was being swallowed silently. Fixes #14333.
mmalerba
pushed a commit
that referenced
this issue
Dec 10, 2018
The `hasError` input allows people to override the error state of a step, however we currently ignore falsy values because of an incorrect ||. These changes also fix one of the test fixtures where an error was being swallowed silently. Fixes #14333.
josephperrott
pushed a commit
to josephperrott/components
that referenced
this issue
Jan 14, 2019
The `hasError` input allows people to override the error state of a step, however we currently ignore falsy values because of an incorrect ||. These changes also fix one of the test fixtures where an error was being swallowed silently. Fixes angular#14333.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Bug, feature request, or proposal:
Bug
What is the expected behavior?
When
hasError="false"
, the step header should show a normal label even if the step is interacted and invalidWhat is the current behavior?
When
hasError="false"
, the step header shows an error state label if the step is interacted and invalidWhat are the steps to reproduce?
https://stackblitz.com/edit/angular-material2-issue-gtxr8x
Go to step 2 without filling the step 1 required input : step 1 label shows error whereas it's set to
hasError="false"
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Material 7.1.0
Angular 7.1.1
Is there anything else we should know?
Behaviour is ok with hasError = true
If you set
hasError="true"
on amat-step
the step will always be styled as a step in error (even if it has not been interacted or is valid)The text was updated successfully, but these errors were encountered: