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

fix(chips): Fix static chips remove padding. #8888

Conversation

topherfangio
Copy link
Contributor

Static chips had some erroneous "remove" padding due to some recent changes with the new md-removable feature.

Fix by updating the isRemovable() method to also check if the component has an ng-model supplied and return false if not.

Also, minor change to demo to provide slightly better feedback to the user.

Fixes #8887.

Static chips had some erroneous "remove" padding due to some recent
changes with the new `md-removable` feature.

Fix by updating the `isRemovable()` method to also check if the
component has an `ng-model` supplied and return false if not.

Also, minor change to demo to provide slightly better feedback to
the user.

Fixes angular#8887.
@topherfangio topherfangio added needs: review This PR is waiting on review from the team P1: urgent Urgent issues that should be addressed in the next minor or patch release. labels Jun 28, 2016
@devversion
Copy link
Member

Even a better approach as the one we discussed. LGTM!

@topherfangio
Copy link
Contributor Author

@devversion Yeah; I started to do it in the template, but realized there were 3-4 places that would need to be updated, and this made more sense 😄

@topherfangio topherfangio added pr: merge ready This PR is ready for a caretaker to review and removed needs: review This PR is waiting on review from the team labels Jun 28, 2016
toshiakiezaki pushed a commit to toshiakiezaki/angular-material that referenced this pull request Jul 1, 2016
Static chips had some erroneous "remove" padding due to some recent
changes with the new `md-removable` feature.

Fix by updating the `isRemovable()` method to also check if the
component has an `ng-model` supplied and return false if not.

Also, minor change to demo to provide slightly better feedback to
the user.

Fixes angular#8887.

Closes angular#8888
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P1: urgent Urgent issues that should be addressed in the next minor or patch release. pr: merge ready This PR is ready for a caretaker to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants