From 36a2e799e993790a1774b32f6a51464e5a460b25 Mon Sep 17 00:00:00 2001 From: Jean Claude Adams Date: Fri, 19 Mar 2021 16:53:15 -0300 Subject: [PATCH] Fix component attribute #20 --- resources/views/select.blade.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/views/select.blade.php b/resources/views/select.blade.php index 18adc57..81ed6fc 100644 --- a/resources/views/select.blade.php +++ b/resources/views/select.blade.php @@ -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++ @@ -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