Closed KaranKapoorIon closed 4 years ago
@trimox Any thoughts on this? I'm not sure if there is an HTML workaround for this, so thought I'd create a feature request.
@trimox I just recalled that value is intended to be used like I mentioned.
MdcSelect: value | Sets the selected item by value.
So, I guess this is a bug?
Set selected of list item to achieve the same. Closing the issue.
Is your feature request related to a problem? Please describe. I'm trying to set a value on mdc-select from within the HTML. I can see that there is (sort of) a provision for it but it doesn't work just yet. I'm trying to do the following...
I'm passing 'orange' to the select but it throws an error during init because it tries to set the value before the list is even initialized.
Describe the solution you'd like If we can initialize the list before initializing the select, may we can pass in the pre-fill value to the select like the above?
Describe alternatives you've considered Alternative, is to set the pre-fill value in JS, which should work (haven't tried yet) but an HTML approach would be more elegant.