Support for 'multiple' attribute in '<select>' elements.#33950
Conversation
Still need to add support for bindings.
SteveSandersonMS
left a comment
There was a problem hiding this comment.
This is looking excellent, and very close to being done now I think :)
|
@MackinnonBuck Again, this looks super and very close to being done :) I found one more thing that probably definitely needs attention, and a "maybe" thing. Hopefully that's the last of it! |
|
This looks great! It would be amazing to get support for having a <InputSelect @bind-Value="AThing">
</InputSelect>
<InputSelect @bind-Value="MultipleThings">
</InputSelect>
@code {
Thing AThing;
Thing[] MultipleThings;
enum Thing
{
[DisplayName("This is the 1st thing")]
FirstThing;
[DisplayName("This is the 2nd thing")]
SecondThing;
}
}If there's already an issue for this I couldn't find it! Happy to log one. |
SteveSandersonMS
left a comment
There was a problem hiding this comment.
Awesome! Thanks so much for handling all the feedback. This looks like a really super and solid feature. Great to see you were able to eliminate the MultipleValues property too - this is a very clean API now!
Support for
multipleattribute in<select>elements.The
onchangeevent will now provide an array of the selected elements viaChangeEventArgswhen themultipleattribute is specified, and array values can be bound to thevalueattribute.PR Description
BindConverter.cs.<select>elements with typeselect-multipleinBrowserRenderer.ts.InputSelectcomponent to infer themultipleattribute based onTValue.Addresses #5519