Skip to content

Commit

Permalink
Combobox with list and both autocomplete: Fix issue with listbox not …
Browse files Browse the repository at this point in the history
…updating (pull #1335)

* fixed #1332 by adding call to filterOptions after updating filter
* added update filterOptions when ever backspace is pressed

Co-authored-by: Matt King <[email protected]>
  • Loading branch information
jongund and mcking65 authored Feb 28, 2020
1 parent 583e5fc commit b543058
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/combobox/js/combobox-autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ ComboboxAutocomplete.prototype.handleComboboxKeyUp = function (event) {
if (this.comboboxNode.value.length < this.filter.length) {
this.filter = this.comboboxNode.value;
this.option = null;
this.filterOptions()
}

if (event.key === "Escape" || event.key === "Esc") {
Expand All @@ -402,7 +403,9 @@ ComboboxAutocomplete.prototype.handleComboboxKeyUp = function (event) {
case "Backspace":
this.setVisualFocusCombobox();
this.setCurrentOptionStyle(false);
this.filter = this.comboboxNode.value;
this.option = null;
this.filterOptions()
flag = true;
break;

Expand Down

0 comments on commit b543058

Please sign in to comment.