From af372828fd3cf759797ddd6dd0544845327f9a05 Mon Sep 17 00:00:00 2001 From: Aydin Hassan Date: Thu, 5 Jan 2023 22:21:17 +0100 Subject: [PATCH] Revert "Fix backspace on empty input issue." --- src/Input/InputIO.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Input/InputIO.php b/src/Input/InputIO.php index aa0a067..51e293c 100644 --- a/src/Input/InputIO.php +++ b/src/Input/InputIO.php @@ -77,9 +77,6 @@ public function collect(Input $input) : InputResult case InputCharacter::BACKSPACE: if (!empty($inputValue)) { $inputValue = substr($inputValue, 0, -1); - if (!is_string($inputValue)) { - $inputValue = ''; - } $this->parentMenu->redraw(); $this->drawInput($input, $inputValue); }