Skip to content

Commit dfc77f0

Browse files
committed
fix: update message for when the user hasn't started typing and options are empty
Fixes #2313
1 parent 9ea8587 commit dfc77f0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/components/Forms/Formik/FormikResourceSelectorDropdown.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,12 @@ export default function FormikResourceSelectorDropdown({
191191
isLoading={isLoading || isRefetching}
192192
className="h-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 sm:text-sm"
193193
options={options}
194+
noOptionsMessage={(input) => {
195+
if (input.inputValue) {
196+
return "No options found";
197+
}
198+
return "Start typing to search";
199+
}}
194200
value={value}
195201
onChange={(value: any) => {
196202
field.onChange({

0 commit comments

Comments
 (0)