diff --git a/packages/react-components/src/Autocomplete/autocomplete.tsx b/packages/react-components/src/Autocomplete/autocomplete.tsx index eff42ff0..e5df7498 100644 --- a/packages/react-components/src/Autocomplete/autocomplete.tsx +++ b/packages/react-components/src/Autocomplete/autocomplete.tsx @@ -590,7 +590,7 @@ Multiple extends boolean | undefined = false, })} )} - {allowCreateOption && !loading && ( + {(allowCreateOption && searchValue.length > 0 && !loading) && ( } > - {createOptionText} + {createOptionText.replace('{{value}}', searchValue)} )} @@ -621,6 +621,6 @@ Autocomplete.defaultProps = { limitTags: 2, required: false, allowCreateOption: false, - createOptionText: 'Create new', + createOptionText: 'Create "{{value}}"', size: 'medium', };