diff --git a/examples/combobox/aria1.0pattern/js/combobox-1.0-list.js b/examples/combobox/aria1.0pattern/js/combobox-1.0-list.js index 28f6395a85..da1cb52878 100644 --- a/examples/combobox/aria1.0pattern/js/combobox-1.0-list.js +++ b/examples/combobox/aria1.0pattern/js/combobox-1.0-list.js @@ -177,6 +177,7 @@ ComboboxList.prototype.handleKeydown = function (event) { break; case this.keyCode.UP: + if (this.listbox.hasOptions()) { if (this.listbox.hasFocus || (this.isBoth && this.option)) { this.setOption(this.listbox.getPreviousItem(this.option), true); @@ -186,8 +187,8 @@ ComboboxList.prototype.handleKeydown = function (event) { if (!altKey) { this.setOption(this.listbox.getLastItem(), true); } - this.setVisualFocusListbox(); } + this.setVisualFocusListbox(); } flag = true; break;