We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0ca5e53 + a01da75 commit 55bcacdCopy full SHA for 55bcacd
hooks/use-answer-filter.ts
@@ -69,5 +69,12 @@ export function buildFilterPlaceholder(question: WizardQuestion | null) {
69
return ""
70
}
71
72
- return `Filter ${question.answers.length} options`
+ const defaultAnswer = question.answers.find((answer) => answer.isDefault && !answer.disabled)
73
+ const exampleLabel = defaultAnswer?.label?.trim() || defaultAnswer?.value?.trim()
74
+
75
+ if (exampleLabel && exampleLabel.length > 0) {
76
+ return `Type ${exampleLabel} for example...`
77
+ }
78
79
+ return "Type to filter options..."
80
0 commit comments