From 3b1478584490e8e5f35ca99013a3b519d1bcecd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20B=C3=BCschlen?= Date: Thu, 2 Nov 2023 16:00:35 +0100 Subject: [PATCH] fix(select): use the correct name of the close method --- src/components/select/Select.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/select/Select.js b/src/components/select/Select.js index 76fda7a5..66466bd1 100644 --- a/src/components/select/Select.js +++ b/src/components/select/Select.js @@ -91,7 +91,7 @@ export class LeuSelect extends LitElement { ) { switch (e.key) { case "Escape": - this.close() + this.closeDropdown() break case "ArrowUp": case "ArrowLeft": @@ -124,7 +124,7 @@ export class LeuSelect extends LitElement { ) switch (e.key) { case "Escape": - this.close() + this.closeDropdown() break case "ArrowUp": case "ArrowLeft": @@ -210,7 +210,7 @@ export class LeuSelect extends LitElement { handleBlur = (e) => { if (e.relatedTarget == null) { - this.close() + this.closeDropdown() } } @@ -230,12 +230,12 @@ export class LeuSelect extends LitElement { this.emitInputEvent() if (!this.multiple) { - this.close() + this.closeDropdown() } } handleApplyClick() { - this.close() + this.closeDropdown() } selectNextOption(currentOption, direction) {