-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Open
Labels
area: material/slidergemini-triagedLabel noting that an issue has been triaged by geminiLabel noting that an issue has been triaged by geminineeds triageThis issue needs to be triaged by the teamThis issue needs to be triaged by the team
Description
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
When using signal forms and the [formField] (or [field] in stackblitz) directive, this line below does not work properly:
<input matSliderStartThumb [field]="form.start_group_1" />
There is a weird "jump" effect happening, for example i slide to increase, but the slider moves back and it glitches out.
If I use the [value] and (valueChange) to set the value directly, this fixes it.
<input
matSliderStartThumb
[value]="form.start_group_2().value()"
(valueChange)="form.start_group_2().value.set($event.toString())"
/>
This also works with the browser native events
<input
matSliderStartThumb
[value]="form.start_group_3().value()"
(input)="form.start_group_3().value.set($event.toString())"
/>
Reproduction
StackBlitz link: https://stackblitz.com/edit/angular-21-base-bl1pabfb?file=src%2Fapp%2Fapp.component.html
Steps to reproduce:
- Slide sliders
- Notice that the field directive is not fully synced with the UI
Expected Behavior
The field / formField version should work like the rest two versions
Actual Behavior
You slide to increase, but the end slider moves back, same for the decrease start slider
Environment
- Angular: > 21
- CDK/Material: > 21
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: material/slidergemini-triagedLabel noting that an issue has been triaged by geminiLabel noting that an issue has been triaged by geminineeds triageThis issue needs to be triaged by the teamThis issue needs to be triaged by the team