Skip to content

Commit

Permalink
apply PR asantibanez#21
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinícius Fagundes committed May 31, 2021
1 parent 2d2a4e2 commit 807646b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/views/select.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
this.selectedIndex--
},
selectDown(component) {
if (component.data.optionsValues.length - 1 === this.selectedIndex) {
if (component.optionsValues.length - 1 === this.selectedIndex) {
return
}
this.selectedIndex++
Expand All @@ -31,9 +31,9 @@
this.isOpen = true
},
confirmSelection(component) {
const value = component.data.optionsValues.length === 1
? component.data.optionsValues[0]
: component.data.optionsValues[this.selectedIndex]
const value = component.optionsValues.length === 1
? component.optionsValues[0]
: component.optionsValues[this.selectedIndex]
if (!value) {
return
Expand Down

0 comments on commit 807646b

Please sign in to comment.