Skip to content

Commit b543058

Browse files
jongundmcking65
andauthored
Combobox with list and both autocomplete: Fix issue with listbox not 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]>
1 parent 583e5fc commit b543058

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/combobox/js/combobox-autocomplete.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ ComboboxAutocomplete.prototype.handleComboboxKeyUp = function (event) {
391391
if (this.comboboxNode.value.length < this.filter.length) {
392392
this.filter = this.comboboxNode.value;
393393
this.option = null;
394+
this.filterOptions()
394395
}
395396

396397
if (event.key === "Escape" || event.key === "Esc") {
@@ -402,7 +403,9 @@ ComboboxAutocomplete.prototype.handleComboboxKeyUp = function (event) {
402403
case "Backspace":
403404
this.setVisualFocusCombobox();
404405
this.setCurrentOptionStyle(false);
406+
this.filter = this.comboboxNode.value;
405407
this.option = null;
408+
this.filterOptions()
406409
flag = true;
407410
break;
408411

0 commit comments

Comments
 (0)