Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Conversation

devversion
Copy link
Member

After the user clicks everywhere else to deselect the chip, the selected chip variable will change in the controller but this needs to be applied to the scope

Fixes #5662

@EladBezalel
Copy link
Member

@devversion please check CI

After the user clicks everywhere else to deselect the chip, the selected chip variable will change in the controller but this needs to be applied to the scope

Fixes angular#5662

fix(chip): Only apply selected chip after blur

fix(chips): remove old jsdoc
@ThomasBurleson ThomasBurleson added needs: review This PR is waiting on review from the team and removed needs: review This PR is waiting on review from the team labels Nov 24, 2015
@ThomasBurleson ThomasBurleson modified the milestones: 1.0-rc7, 1.01 Nov 24, 2015
@topherfangio
Copy link
Contributor

This definitely needs a test, and some manual testing. I have run into multiple cases in the FAB Speed Dial where calling $scope.$apply() during a blur() caused issues. This mainly happened if the user was tabbing to another item which meant that the blur() happened inside of an existing digest loop.

This is why I switched to $scope.evalAsync(): https://github.com/angular/material/blob/master/src/components/fabSpeedDial/fabController.js#L13

@topherfangio topherfangio added needs: work and removed needs: review This PR is waiting on review from the team labels Dec 30, 2015
@devversion
Copy link
Member Author

I wan't to combine this PR with #5941, because there I already created a test section for the focus functionality.

@devversion devversion closed this Dec 31, 2015
@devversion devversion deleted the fix/chips-blur-item branch April 21, 2016 11:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants