You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When prompting for a number I get the behavior that it selects 10 + your first input digit, then adding up the digits after that.
from InquirerPy import inquirer
from InquirerPy.validator import EmptyInputValidator
number1 = inquirer.number(
message="Enter a number (1-10000):",
min_allowed=1,
max_allowed=10000,
default=1,
validate=EmptyInputValidator(),
vi_mode=False
).execute()
number2 = inquirer.number(
message="Enter a number (1-10000):",
min_allowed=1,
max_allowed=10000,
default=1,
validate=EmptyInputValidator(),
vi_mode=False
).execute()
When being prompted, I press 3 on my keyboard and the prompt will show me 13, and then pressing 1 (for 31) the result ends up being 131. Entering 3 and hitting enter will result in the value 13, entering 7 will result in 17, entering 44 will result in 144 and so on. When removing the input with backspace before hitting enter and trying again it will take my input as expected. But for each first input of a prompt, the above behavior is seen.
What am I missing? vi_mode does not seem to change anything.
Outputs
Input: 130\r32\r:
? Enter a number (1-10000): 1130
? Enter a number (1-10000): 132
Input: 5\b\b5\r5\r
? Enter a number (1-10000): 5
? Enter a number (1-10000): 15
Windows 11
inquirerpy 0.3.4
python 3.12.2
The text was updated successfully, but these errors were encountered:
When prompting for a number I get the behavior that it selects 10 + your first input digit, then adding up the digits after that.
When being prompted, I press 3 on my keyboard and the prompt will show me
13
, and then pressing 1 (for 31) the result ends up being131
. Entering 3 and hitting enter will result in the value 13, entering 7 will result in 17, entering 44 will result in 144 and so on. When removing the input with backspace before hitting enter and trying again it will take my input as expected. But for each first input of a prompt, the above behavior is seen.What am I missing? vi_mode does not seem to change anything.
Outputs
Input: 130\r32\r:
Input: 5\b\b5\r5\r
Windows 11
inquirerpy 0.3.4
python 3.12.2
The text was updated successfully, but these errors were encountered: