Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

prompt() isn't working when both "type" and "required" params are set #112

Open
DivsBellur opened this issue Jun 24, 2019 · 1 comment
Open
Labels
bug Something isn't working

Comments

@DivsBellur
Copy link

I was trying to call prompt like below, which does not work. The control stays at the line and nothing happens.
return ux.prompt('Enter ssh key file pass phrase if you have one or press enter to move on', {type: 'hide', required: false});
Although when I call prompt without the "type" but with "required" set, then it works
return ux.prompt('Enter ssh key file pass phrase if you have one or press enter to move on', {required: false});

I think this is a bug, as I can see how a user of the utility would want to implement a user input capability where both of these params needs to be set.

@prokopsimek
Copy link

The same issue here. There is a bug in timeout too.

@RasPhilCo RasPhilCo added the bug Something isn't working label Jul 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants