Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input post completion text does not appear if the user uses the default #309

Open
doonv opened this issue Mar 26, 2024 · 0 comments
Open

Comments

@doonv
Copy link

doonv commented Mar 26, 2024

I have a Input that looks like this:

let result: String = Input::new()
        .with_prompt("My Prompt")
        .with_post_completion_text("Completed Prompt")
        .default("My Default".to_string())
        .interact_text()
        .unwrap();

If the user types in their own input, everything works as intended. However if the user just presses Enter to use the default string, then the post completion text does not appear, instead the prompt appears.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant