Skip to content

Fix error thrown by ChipInput component generated by AutocompleteArrayInput - #2861

Merged
fzaninotto merged 2 commits into
marmelab:masterfrom
tiagoschenkel:issue-2361
Feb 22, 2019
Merged

fzaninotto merged 2 commits into
marmelab:masterfrom
tiagoschenkel:issue-2361

Conversation

@tiagoschenkel

Copy link
Copy Markdown
Contributor

The problem described in issue #2361 happens because, sometimes, the input component has an empty string as a default value, but the AutocompleteArrayInputChip component only accepts an Array as a value.

Enforcing state.inputValue to be an Array solves the issue.

Fixes #2361.

Comment thread packages/ra-ui-materialui/src/input/AutocompleteArrayInput.js Outdated
@fzaninotto
fzaninotto merged commit c31ce36 into marmelab:master Feb 22, 2019
@fzaninotto

Copy link
Copy Markdown
Member

Thanks!

@fzaninotto fzaninotto added this to the 2.7.2 milestone Feb 22, 2019
@tiagoschenkel
tiagoschenkel deleted the issue-2361 branch February 22, 2019 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants