Skip to content

Commit 807646b

Browse files
author
Vinícius Fagundes
committed
apply PR asantibanez#21
1 parent 2d2a4e2 commit 807646b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

resources/views/select.blade.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
this.selectedIndex--
2222
},
2323
selectDown(component) {
24-
if (component.data.optionsValues.length - 1 === this.selectedIndex) {
24+
if (component.optionsValues.length - 1 === this.selectedIndex) {
2525
return
2626
}
2727
this.selectedIndex++
@@ -31,9 +31,9 @@
3131
this.isOpen = true
3232
},
3333
confirmSelection(component) {
34-
const value = component.data.optionsValues.length === 1
35-
? component.data.optionsValues[0]
36-
: component.data.optionsValues[this.selectedIndex]
34+
const value = component.optionsValues.length === 1
35+
? component.optionsValues[0]
36+
: component.optionsValues[this.selectedIndex]
3737
3838
if (!value) {
3939
return

0 commit comments

Comments
 (0)