Skip to content
New issue

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

Fix error thrown by ChipInput component generated by AutocompleteArrayInput #2861

Merged
merged 2 commits into from
Feb 22, 2019

Conversation

tiagoschenkel
Copy link
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.

@fzaninotto fzaninotto merged commit c31ce36 into marmelab:master Feb 22, 2019
@fzaninotto
Copy link
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