From d6c2943282d3a30fb9f3472fa157f9d69268258e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Poussard?= <tpoussard@neogeo.fr> Date: Tue, 9 Nov 2021 14:16:00 +0100 Subject: [PATCH] fix dropdown if no options --- src/components/Dropdown.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Dropdown.vue b/src/components/Dropdown.vue index 9f2d725f..ac43aac3 100644 --- a/src/components/Dropdown.vue +++ b/src/components/Dropdown.vue @@ -112,7 +112,7 @@ export default { setTimeout(() => { this.isOpen = false; }, 0); - this.$emit("update:selection", this.filteredOptions[index]); + if (index) this.$emit("update:selection", this.filteredOptions[index]); this.input = ""; }, -- GitLab