-
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
fix(stepper): unable to skip step if completed value is overwritten #15403
fix(stepper): unable to skip step if completed value is overwritten #15403
Conversation
1ece8b1
to
943ecf7
Compare
ff7225c
to
ffe1765
Compare
Currently we allow for the `completed` value of a step to be overwritten, however setting it to `true` still won't allow the user to skip the step, because the `interacted` flag won't be flipped if they haven't been on a particular step before. Fixes angular#15310.
ffe1765
to
0e64c4b
Compare
} | ||
private _customCompleted: boolean | null = null; | ||
_completedOverride: boolean|null = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a reason this was made non-private?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's been a long time since I opened this PR, but from what I can tell, it's because CdkStepper
also checks it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok, yeah sorry was going through my old assigned PRs and found this that I never responded to
} | ||
private _customCompleted: boolean | null = null; | ||
_completedOverride: boolean|null = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok, yeah sorry was going through my old assigned PRs and found this that I never responded to
…15403) Currently we allow for the `completed` value of a step to be overwritten, however setting it to `true` still won't allow the user to skip the step, because the `interacted` flag won't be flipped if they haven't been on a particular step before. Fixes #15310. (cherry picked from commit bebb9ff)
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. |
Currently we allow for the
completed
value of a step to be overwritten, however setting it totrue
still won't allow the user to skip the step, because theinteracted
flag won't be flipped if they haven't been on a particular step before.Fixes #15310.