The problem is that Promptui validation in setEmail(beneath code) gets called one char at the time giving this:
✗ Input your Email: █
e
✗ Input your Email: e█
e
m
✗ Input your Email: em█
m
a
✗ Input your Email: ema█
a
i
✗ Input your Email: emai█
i
l
✗ Input your Email: email█
l
@
✗ Input your Email: email@█
@
t
✗ Input your Email: email@t█
t
e
✗ Input your Email: email@te█
e
s
✗ Input your Email: email@tes█
s
t
✗ Input your Email: email@test█
t
.
✗ Input your Email: email@test.█
.
c
✗ Input your Email: email@test.c█
c
o
✗ Input your Email: email@test.co█
o
m
✗ Input your Email: email@test.com█
Code:
Note: printStdin func is just to verify stdin has values, and therefore commented out(//)
Hi
I have the following test code:
The problem is that Promptui validation in
setEmail
(beneath code) gets called one char at the time giving this:Code: Note: printStdin func is just to verify stdin has values, and therefore commented out(//)