Skip to content

Commit

Permalink
fix(select): use the correct name of the close method
Browse files Browse the repository at this point in the history
  • Loading branch information
daenub committed Nov 2, 2023
1 parent 77d50ae commit 3b14785
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/select/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class LeuSelect extends LitElement {
) {
switch (e.key) {
case "Escape":
this.close()
this.closeDropdown()
break
case "ArrowUp":
case "ArrowLeft":
Expand Down Expand Up @@ -124,7 +124,7 @@ export class LeuSelect extends LitElement {
)
switch (e.key) {
case "Escape":
this.close()
this.closeDropdown()
break
case "ArrowUp":
case "ArrowLeft":
Expand Down Expand Up @@ -210,7 +210,7 @@ export class LeuSelect extends LitElement {

handleBlur = (e) => {
if (e.relatedTarget == null) {
this.close()
this.closeDropdown()
}
}

Expand All @@ -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) {
Expand Down

0 comments on commit 3b14785

Please sign in to comment.