#Is there a way to show create label option in select without input new value?

1 messages · Page 1 of 1 (latest)

loud wharf
#

I have this written, but the creatable option will only show when result not found in existing data.

<Select  label={t('currency')}  classNames={classes}  data={currencyData}  placeholder={t('dropdown_select_currency')}  nothingFound={t('dropdown_no_result')}  searchable  creatable  getCreateLabel={(query) => `+ ${t('create')} ${query}`}  onCreate={(query) => {        const item = { value: query, label: query };        setCurrencyData((current) => [...current, item]);        return item;    }}/>

I want the creatable to show, so i can implement a modal dialog to add my data. How can i let the creatable option available all the time?

loud wharf
#

Is there a way to show create label option in select without input new value?