Replies: 1 comment
-
Thanks for the report. This is clearly a pagination bug and we fixed it in #209. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Here is a code example:
using Sharprompt;
...
var city = Prompt.Select("Select your city", new[] { "Seattle", "London", "Tokyo" })
Console.WriteLine($"Hello, {city}!");
The problem is that when the app is running, the user writes something (to filter the select options) and the user presses enter, the
Value is required
message shows up and if the user presses the arrow key down and then enter, the app crashes. I believe it is because theValue is required
message acts as a selectable option and when it disappears and the user presses enter, the selection of an item which is not present is attempted.I have attached a video to aid the problem comprehension.
This might be a good problem to fix.
Thank you, Ryan.
Sharprompt.-.Prompt.Select.Crash.mp4
Beta Was this translation helpful? Give feedback.
All reactions