diff --git a/api-generator/components/dropdown.js b/api-generator/components/dropdown.js index 62e06cdf0..43ca5fbd7 100644 --- a/api-generator/components/dropdown.js +++ b/api-generator/components/dropdown.js @@ -232,7 +232,7 @@ const DropdownProps = [ type: "string", default: "null", description: "Defines a string value that labels an interactive element." - } + }, { name: "ariaLabelledby", type: "string", diff --git a/api-generator/components/listbox.js b/api-generator/components/listbox.js index 75331ea5d..6cfcb858b 100644 --- a/api-generator/components/listbox.js +++ b/api-generator/components/listbox.js @@ -160,7 +160,7 @@ const ListboxProps = [ type: "string", default: "null", description: "Defines a string value that labels an interactive element." - } + }, { name: "ariaLabelledby", type: "string", diff --git a/api-generator/components/multiselect.js b/api-generator/components/multiselect.js index e168c4444..402b92575 100644 --- a/api-generator/components/multiselect.js +++ b/api-generator/components/multiselect.js @@ -250,7 +250,7 @@ const MultiSelectProps = [ type: "string", default: "null", description: "Defines a string value that labels an interactive element." - } + }, { name: "ariaLabelledby", type: "string", diff --git a/src/components/dropdown/Dropdown.vue b/src/components/dropdown/Dropdown.vue index d1b4b6074..a7d817373 100755 --- a/src/components/dropdown/Dropdown.vue +++ b/src/components/dropdown/Dropdown.vue @@ -16,7 +16,7 @@ -
+
@@ -461,6 +461,16 @@ export default { target: this.$el }); }, + onOverlayKeyDown(event) { + switch (event.code) { + case 'Escape': + this.onEscapeKey(event); + break; + + default: + break; + } + }, onArrowDownKey(event) { const optionIndex = this.focusedOptionIndex !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex) : this.findFirstFocusedOptionIndex();