Added: possibility to turn off TextSelector in Select and MultiSelect; possibility to select empty value when default value is provided in InputForm.#300
Open
radekRadekk wants to merge 3 commits intoshibayan:masterfrom
Conversation
added 3 commits
February 27, 2025 21:58
…d in InputForm. This option is configured with defaultValueMustBeSelected argument of Prompt.Input method. It's non-breaking change, because defaultValueMustBeSelected is false by default, which means behaviour of Promp.Input is the same as it was.
… and MultiSelectForm.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello,
I wanted to turn text selector off in multiselect input. I didn't find the option to do it, so I created this pull request.
I also found this issue: https://github.com/shibayan/Sharprompt/issues/297, so I covered it as well (hopefully).
To sum up:
I recoreded short demo:
Sharprompt_demo.mp4
Please take a look and think if you want to include this PR in your library. Feel free to leave me comments about code quality, style etc.