Skip to content

[Bug] [Regression] Text Prompt Incorrectly Uses Placeholder Value as the Default Value #322

Closed
@aliasghar98

Description

@aliasghar98

Environment

  • OS: Windows
  • Node Version: 18.20.4
  • Package: @clack/prompts
  • Package Version: 0.10.1

Describe the bug
Upon not entering anything for a text prompt and having a placeholder value defined, the placeholder value replaces the actual text input for that prompt twice duplicated.

To Reproduce
Please refer to the screenshots.

Image

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions