Skip to content

Commit

Permalink
Merge pull request #150 from conedevelopment/szepeviktor-patch-1
Browse files Browse the repository at this point in the history
Fix typo in dropdown.js
  • Loading branch information
iamgergo authored Sep 18, 2023
2 parents d132343 + 6ecf656 commit 685b71b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ document.addEventListener('alpine:init', () => {

if (this.options.length === 0) {
this.highlighted = null;
} else if (this.index >= this.options.length) {
} else if (index >= this.options.length) {
this.highlighted = 0;
} else if (index < 0) {
this.highlighted = this.options.length - 1;
Expand Down

0 comments on commit 685b71b

Please sign in to comment.