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

Change detection not happening in Stepper #17646

Closed
gopinathshiva opened this issue Nov 7, 2019 · 2 comments

Comments

@gopinathshiva
Copy link

@gopinathshiva gopinathshiva commented Nov 7, 2019

Bug

https://stackblitz.com/edit/angular-sgd5rc

Description:
I created a scrollsync using mat-vertical-stepper. The problem is its working sometimes and its not working sometimes. I believe this is due to change detection not kicks in. Though I am updating selectedIndex property, step is not getting active.

Detailed Reproduction Steps:

  1. Scroll on the right side of the app fastly
  2. You can see corresponding scrollsync not happening on the left

Also, sometimes when you click on the left side , selectionChange is not triggering

Interesting thing to note is when all the steps get done icon (by clicking on all steps on the left side to get done icon), then scrollsync working.

What is the expected behavior?

scrollsync should happen for the above attached code always.

What is the current behavior?

scrollsync not happening sometimes

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

believing problem lies in the way , the component applying states active

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

All Latest versions

@gopinathshiva

This comment has been minimized.

Copy link
Author

@gopinathshiva gopinathshiva commented Nov 7, 2019

My mistake. Removing linear at the mat-vertical-stepper solved the problem

@Splaktar

This comment has been minimized.

Copy link
Member

@Splaktar Splaktar commented Nov 7, 2019

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

I have transferred this issue to the correct repository for you.

@Splaktar Splaktar transferred this issue from angular/material Nov 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.