material icon indicating copy to clipboard operation
material copied to clipboard

mat-slide-toggle all toggles flash on changing one

Open buratinodev opened this issue 8 years ago • 3 comments

Bug, enhancement request, or proposal:

Bug

CodePen and steps to reproduce the issue:

CodePen Demo which demonstrates the issue:

https://stackblitz.com/edit/angular-1jhujs?file=app%2Fslide-toggle-overview-example.ts

Detailed Reproduction Steps:

  1. create slide toggles in a loop
  2. the elements that feed the loop come from firebase
  3. on slide toggle, update items in firebase
  4. the items that feed the loop are updated on snapshotChanges()
  5. the toggled sliders flash

What is the expected behavior?

only the slide that is toggled should move

What is the current behavior?

all the toggled sliders reset to 'off' then to their current value I also have a short video of it if someone is interested

What is the use-case or motivation for changing an existing behavior?

Which versions of AngularJS, Material, OS, and browsers are affected?

  • Angular: 6.1.2
  • Angular Material: 6.4.3
  • OS:
  • Browsers: Chrome

Is there anything else we should know? Stack Traces, Screenshots, etc.

buratinodev avatar Aug 17 '18 09:08 buratinodev

Please submit Angular Material questions here and issues here. This repo is for AngularJS Material.

Splaktar avatar Aug 17 '18 09:08 Splaktar

Oh, sorry about that

buratinodev avatar Aug 17 '18 15:08 buratinodev

I am also facing same issue regarding mat-slide-toggle

rahulbroadview avatar Feb 25 '20 10:02 rahulbroadview