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

Remove 'selectedValues' or clarify its relationship to value #80

Open
evert opened this issue Jun 16, 2021 · 1 comment
Open

Remove 'selectedValues' or clarify its relationship to value #80

evert opened this issue Jun 16, 2021 · 1 comment

Comments

@evert
Copy link

evert commented Jun 16, 2021

selectedValues has the same purpose as value. Both properties show the pre-filled value of the property before the user starts editing.

I hope we can remove selectedValues and use value for all these cases. If not, I think the spec could benefit from some clarification on how they relate to each other. What happens if both are provided?

@mamund
Copy link
Owner

mamund commented Jun 16, 2021

if i recall correclty, the current state of affairs has to do w/ the original definition of value as a string and selectedValues as an array. we wanted to support multiple values and i did not want to introduce a compatibility -breaking change to the interface by changing value to an array.

i think i even suggested an option where the value contents could be a JSON.stringify-like array value but that was not popular.

i prefer there be just value and not have the selectedValues. there may be other ways to solve this as a non-breaking change but i have not yet found one that is acceptable.

ideas?

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

No branches or pull requests

2 participants