We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5739dff + 2a66fbd commit d2272fcCopy full SHA for d2272fc
src/Input/InputIO.php
@@ -75,9 +75,11 @@ public function collect(Input $input) : InputResult
75
}
76
77
case InputCharacter::BACKSPACE:
78
- $inputValue = substr($inputValue, 0, -1);
79
- $this->parentMenu->redraw();
80
- $this->drawInput($input, $inputValue);
+ if (!empty($inputValue)) {
+ $inputValue = substr($inputValue, 0, -1);
+ $this->parentMenu->redraw();
81
+ $this->drawInput($input, $inputValue);
82
+ }
83
continue 2;
84
85
0 commit comments