We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What you were expecting:
When specifying this code:
<AutocompleteArrayInput optionText={item => `${item.category}:${item.value}`} create={<CreateTagDialog />} />
I expect to see a "Create" item at the end of the list of choice
What happened instead:
There is an empty item. I have to write the following code to make it work:
<AutocompleteArrayInput optionText={item => { if (item.id === '@@ra-create') { return item.name } return `${item.category}:${item.value}` }} create={<CreateTagDialog />} />
Related code:
https://codesandbox.io/s/empty-framework-p8v3q?file=/src/posts/TagReferenceInput.tsx
Environment
The text was updated successfully, but these errors were encountered:
Reproduced, thanks for the report.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
What you were expecting:
When specifying this code:
I expect to see a "Create" item at the end of the list of choice
What happened instead:
There is an empty item. I have to write the following code to make it work:
Related code:
https://codesandbox.io/s/empty-framework-p8v3q?file=/src/posts/TagReferenceInput.tsx
Environment
The text was updated successfully, but these errors were encountered: