Skip to content

Conversation

@kapilpipaliya
Copy link
Contributor

I am getting this error when I have option value is array: Uncaught Error: Incompatible value type for single select.

I am getting this error when I have option value is array: `Uncaught Error: Incompatible value type for single select.`
@martinpengellyphillips
Copy link
Contributor

Value needs to be an array when setting value for a multiple select.

So the error is correct.

@kapilpipaliya
Copy link
Contributor Author

yes, but I did this PR for single select. when single select the value can be a Array too.

@martinpengellyphillips
Copy link
Contributor

I'm not sure what you mean. When using a single select the value should be scalar (not an array). Are you saying you want to support setting an array for a single select?

@kapilpipaliya
Copy link
Contributor Author

yes, I want the support of array for a single select, because my single select option value is an array.

@martinpengellyphillips
Copy link
Contributor

That sounds like an interesting use case and not one I expected. Could you share your example use case?

Internally we don't expect arrays and it might break in places so I'll need to check that.

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