Make vModelCheckbox allow Set as model (similar to Array) #1946
Labels
has workaround
A workaround has been found to avoid the problem
✨ feature request
New feature or request
What problem does this feature solve?
Currently it is possible to bind a checkbox to an array and let Vue populate the array with the checked values. A similar behavior for a native Set as a model would be nice.
The Set API is more accessible in some cases, especially when checking (Set.has vs. Array.find/Array.indexOf) and removing (Set.delete vs. Array.splice/Array.filter) elements from the collection.
What does the proposed API look like?
The API stays the same, just the type of the data model is different. Picking up the example from the docs:
The text was updated successfully, but these errors were encountered: