-
Notifications
You must be signed in to change notification settings - Fork 159
Closed as duplicate of#439
Description
Description
When using autocomplete from @clack/prompts@1.0.0-alpha.9, the user's typed input is not displayed in the search field. The placeholder text remains visible even while typing, though filtering works correctly.
Expected: Search input shows typed characters (e.g., Search: dra█)
Actual: Placeholder stays visible (e.g., Search: Type to filter... (27 matches))
Reproduction
import { autocomplete } from "@clack/prompts";
const result = await autocomplete({
message: "Pick a theme",
options: [
{ value: "dracula", label: "dracula" },
{ value: "nord", label: "nord" },
{ value: "tokyo-night", label: "tokyo-night" },
],
placeholder: "Type to filter...",
});- Run the above code
- Start typing (e.g., "dra")
- Notice filtering works (list narrows down) but input text is not visible
Environment
@clack/prompts: 1.0.0-alpha.9@clack/core: 1.0.0-alpha.9- Runtime: Bun 1.3.5
- OS: Linux
Workaround
Using stable @clack/prompts@0.11.0 with select instead of autocomplete.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Needs triage