Skip to content

Commit af37282

Browse files
authored
Revert "Fix backspace on empty input issue."
1 parent 266336a commit af37282

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Input/InputIO.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ public function collect(Input $input) : InputResult
7777
case InputCharacter::BACKSPACE:
7878
if (!empty($inputValue)) {
7979
$inputValue = substr($inputValue, 0, -1);
80-
if (!is_string($inputValue)) {
81-
$inputValue = '';
82-
}
8380
$this->parentMenu->redraw();
8481
$this->drawInput($input, $inputValue);
8582
}

0 commit comments

Comments
 (0)