Skip to content
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

Merged
merged 1 commit into from
Oct 2, 2019

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Mar 6, 2019

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.

@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Mar 6, 2019
@crisbeto crisbeto requested a review from mmalerba as a code owner March 6, 2019 20:31
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Mar 6, 2019
@crisbeto crisbeto force-pushed the 15310/stepper-completed-override branch from 1ece8b1 to 943ecf7 Compare March 6, 2019 20:37
@crisbeto crisbeto force-pushed the 15310/stepper-completed-override branch 3 times, most recently from ff7225c to ffe1765 Compare March 18, 2019 21:46
@mmalerba mmalerba added aaa and removed aaa labels Apr 25, 2019
@andrewseguin andrewseguin added the P4 A relatively minor issue that is not relevant to core functions label May 30, 2019
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.
@crisbeto crisbeto force-pushed the 15310/stepper-completed-override branch from ffe1765 to 0e64c4b Compare June 15, 2019 14:09
}
private _customCompleted: boolean | null = null;
_completedOverride: boolean|null = null;
Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Contributor

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;
Copy link
Contributor

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

@mmalerba mmalerba added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Aug 12, 2019
@mmalerba mmalerba removed their assignment Aug 12, 2019
@mmalerba mmalerba merged commit bebb9ff into angular:master Oct 2, 2019
mmalerba pushed a commit that referenced this pull request Oct 8, 2019
…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)
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P4 A relatively minor issue that is not relevant to core functions target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stepper [completed]="true" cannot skip steps
5 participants