Skip to content

Commit cb1828d

Browse files
Merge pull request #22 from pdoronila/clearFunc
Adding functionality to clear selectedObjects (the chips)
2 parents 2224f3d + 1eb6e8a commit cb1828d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

paper-input-autocomplete-chips.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@
692692

693693
_calculateSuggestionPanelPosition: function () {
694694
if (this.withCustomSuggestionBoxPosition) {
695-
fire('custom-suggestion-position', {
695+
fire('custom-suggestion-position', {
696696
inputContainer: this.$.paperInputContainer,
697697
inputElement: this.$input,
698698
suggestionPanel: this.$.suggestionsPanel
@@ -810,6 +810,11 @@
810810
this._search(this._safeInputValue);
811811
}
812812
},
813+
814+
clear: function() {
815+
this.selectedObjects = [];
816+
},
817+
813818
});
814819
</script>
815820
</dom-module>

0 commit comments

Comments
 (0)