\
+ \
+ {{$mdChipsCtrl.containerHint}}\
+ \
\
\
\
\
\
@@ -176,8 +216,8 @@
\
\
\
@@ -233,10 +272,13 @@
onAdd: '&mdOnAdd',
onRemove: '&mdOnRemove',
onSelect: '&mdOnSelect',
+ inputAriaLabel: '@',
+ containerHint: '@',
deleteHint: '@',
deleteButtonLabel: '@',
separatorKeys: '=?mdSeparatorKeys',
- requireMatch: '=?mdRequireMatch'
+ requireMatch: '=?mdRequireMatch',
+ chipAppendDelayString: '@?mdChipAppendDelay'
}
};
@@ -323,7 +365,7 @@
mdChipsCtrl.mdCloseIcon = $$mdSvgRegistry.mdClose;
element
- .attr({ 'aria-hidden': true, tabindex: -1 })
+ .attr({ tabindex: -1 })
.on('focus', function () { mdChipsCtrl.onFocus(); });
if (attr.ngModel) {
diff --git a/src/components/chips/js/contactChipsController.js b/src/components/chips/js/contactChipsController.js
index 980fc377cd6..8ef7000c196 100644
--- a/src/components/chips/js/contactChipsController.js
+++ b/src/components/chips/js/contactChipsController.js
@@ -18,17 +18,10 @@ function MdContactChipsCtrl () {
MdContactChipsCtrl.prototype.queryContact = function(searchText) {
- var results = this.contactQuery({'$query': searchText});
- return this.filterSelected ?
- results.filter(angular.bind(this, this.filterSelectedContacts)) : results;
+ return this.contactQuery({'$query': searchText});
};
MdContactChipsCtrl.prototype.itemName = function(item) {
return item[this.contactName];
};
-
-
-MdContactChipsCtrl.prototype.filterSelectedContacts = function(contact) {
- return this.contacts.indexOf(contact) == -1;
-};
diff --git a/src/components/chips/js/contactChipsDirective.js b/src/components/chips/js/contactChipsDirective.js
index 66be4efb109..20ef2480dfb 100644
--- a/src/components/chips/js/contactChipsDirective.js
+++ b/src/components/chips/js/contactChipsDirective.js
@@ -32,9 +32,10 @@ angular
* @param {number=} md-min-length Specifies the minimum length of text before autocomplete will
* make suggestions
*
- *
* @param {expression=} filter-selected Whether to filter selected contacts from the list of
- * suggestions shown in the autocomplete. This attribute has been removed but may come back.
+ * suggestions shown in the autocomplete.
+ *
+ * ***Note:** This attribute has been removed but may come back.*
*
*
*
@@ -57,6 +58,7 @@ var MD_CONTACT_CHIPS_TEMPLATE = '\
\