Skip to content

Commit

Permalink
Fix required validation on suggest prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
jessarcher committed Aug 2, 2023
1 parent ee79c23 commit 96cb6a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SuggestPrompt.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ public function __construct(
) {
$this->options = $options instanceof Collection ? $options->all() : $options;

$this->trackTypedValue($default);

$this->on('key', fn ($key) => match ($key) {
Key::UP, Key::SHIFT_TAB => $this->highlightPrevious(),
Key::DOWN, Key::TAB => $this->highlightNext(),
Expand All @@ -57,6 +55,8 @@ public function __construct(
$this->matches = null;
})(),
});

$this->trackTypedValue($default);
}

/**
Expand Down

0 comments on commit 96cb6a4

Please sign in to comment.