From 96bf091084baf3bafe87a5e1ed6784269a6ab993 Mon Sep 17 00:00:00 2001 From: Meghea Iulian Date: Sun, 15 Mar 2020 12:32:06 +0200 Subject: [PATCH] fix: remove unnecessary call to _handleSuggestions --- paper-autocomplete-chips.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/paper-autocomplete-chips.js b/paper-autocomplete-chips.js index 0034770..07d3ebe 100644 --- a/paper-autocomplete-chips.js +++ b/paper-autocomplete-chips.js @@ -423,15 +423,7 @@ class PaperAutocompleteChips extends translatable(PolymerElement) { return; } this.push('selectedItems', newSelection); - microTask.run(() => { - this.$.ac.clear(); - // FIXME - this.$.ac.$.paperAutocompleteSuggestions._handleSuggestions({ - target: { - value: '' - } - }); - }); + microTask.run(() => this.$.ac.clear()); } /** * Check whether the input is valid or not.