promptui icon indicating copy to clipboard operation
promptui copied to clipboard

Run validation after return key

Open jsanz-cyracom opened this issue 1 year ago • 0 comments

I have a scenario where I need to make a web request in the validation function of a prompt. If use the current validate function it would make a web request for every keystroke when running the prompt. It would be useful to introduce a ValidateR property where the function only gets executed after the user presses the return key.

jsanz-cyracom avatar Feb 12 '23 07:02 jsanz-cyracom