This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
chips: editable mdChip not working properly #10879
Labels
has: Pull Request
A PR has been created to address this issue
P2: required
Issues that must be fixed.
resolution: fixed
severity: regression
This issue is related to a regression
type: bug
Milestone
Issue:
I found out that the editable functionality of md-chip is not working properly. Every time I try to edit the value of a chip it'll disappear.
Steps to reproduce the issue:
Additional Information:
Browser Type: Chrome*
Browser Version: 60.03*
OS: Windows 10*
What I found is the problem is with this piece of code in angular-material.js at line number 26743.
MdChipCtrl.prototype.getContentElement = function() { return angular.element(
this.getChipContent().children()[0]); };
this.getChipContent().children()
becomes empty, and doesn't return the first child element which is text label that contains the user inputted value as a resultvar content = this.getContentElement().text();
at line number 26766 returns empty string.Solution:
MdChipCtrl.prototype.getContentElement = function() { return angular.element(this.getChipContent().first); };*
The text was updated successfully, but these errors were encountered: