You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Click at step2, notice the "interacted" event was emitted for step2, which also caused the field showing errored state, even though the user did not interacted with step2 yet.
Remove [selectedIndex]="selectedIndex()" from <mat-stepper> and repeat the above - everything works as expected.
Expected Behavior
Binding selectedIndex has no effect on interacted behavior.
Fixes that the stepper was marking an item as interacted and emitting an event whenever the `selectedIndex` is assigned, even if it's the same.
Fixesangular#30540.
…#30579)
Fixes that the stepper was marking an item as interacted and emitting an event whenever the `selectedIndex` is assigned, even if it's the same.
Fixes#30540.
…#30579)
Fixes that the stepper was marking an item as interacted and emitting an event whenever the `selectedIndex` is assigned, even if it's the same.
Fixes#30540.
(cherry picked from commit 4f3c931)
Is this a regression?
The previous version in which this bug was not present was
No response
Description
When
slectedIndex
input is bound and user navigates to a step, the step is immediately flagged as interacted.Reproduction
StackBlitz link: https://stackblitz.com/edit/components-issue-starter-8hiddnw8?file=src%2Fmain.ts
Steps to reproduce:
[selectedIndex]="selectedIndex()"
from<mat-stepper>
and repeat the above - everything works as expected.Expected Behavior
Binding
selectedIndex
has no effect oninteracted
behavior.Actual Behavior
Binding
selectedIndex
changesinteracted
behavior.Environment
The text was updated successfully, but these errors were encountered: