On the examples page, Multiple select boxes.
https://select2.github.io/examples.html
As you can see, I've selected both Alaska and Hawaii. So why is the selected attribute not set on the <option> elements for those two options ? How am I supposed to know what is selected when I actually submit the form?

Similarly for the remote data, I selected a repository, but the select/select2 option is still set to selected, instead of the new option. Why is the new option not marked as selected ? If I were to submit this form now, the value submitted through POST would be select/select2 instead of the one that's actually selected.
