Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

cdaringe
Copy link

Problem

multi-select ignores values in choices.

Solution

Respect value if present in a choice, otherwise, fallback to default behavior.

value = utils.reorder(value);
}

this.value = multi ? value.map(ch => ch.name) : value.name;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚡ only .name was ever considered, even if i gave: choices: [{ name: 'big bad foo', value: 'foo', { name: 'baaazzzzz', value: 'baz' }], for example

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.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.