I am not sure this is really a bug. Can you check my version?
Either you select the selected option manually or you disable the updates using e.preventUpdate = true
e.preventUpdate = true
I think this is also part of this discussion
This may not be a bug, but is a breaking change as the behaviour has modified since the previous riot version(s). What was the reason for the change, does it fix another issue?
I can confirm your's works, but unfortunately the update isn't that straight forward as the select is inside a much used component, which is scattered amongst various projects, not all of which have the same amount of test coverage as the one I'm working on. So I'm not sure if I'll break stuff elsewhere by introducing this change.
Let me know your plans regarding this. If you're happy with it's current behaviour, and no one else has this issue I'll modify my component to fall inline with this. If you're going to change it back in the next release, again let me know and I'll hold back updating riot until 2.3.18.
My current project has 100% test coverage, so if a fly farts on the other side of the planet I get a failed test. Hopefully I won't bother you too much with fly flatulence failed test issues.
@crisward , this behavior was introduced by the fix for #1374 - with a non-multiple select, if you set the value via option.selected in Firefox, the current option is not deselected.
The solution was to use selectedIndex which works as expected, but we cannot set it before the select is complete (indexes are unknown) so the fix forces selected to the expression value.
The resulting behavior was unexpected and not consistent with the rest. It should be fixed of course. I'm working on this.
@crisward , @GianlucaGuarini , if you have the time, please play with this plunker.
It is using a patched version of riot+compiler
I think this have now the spected behavior, and works ok in various browsers, including IE9 and FF.
Seems #1642 go in this direction as well.
Had a mess and copied your dev code to my plunker and it worked fine.
@aMarCruz cool please make a pull request
@GianlucaGuarini , done.
@aMarCruz merged thank you soooo much! 😄
Thanks for all the hard work, just updated from 2.3.15 to 2.3.18 and all my 337 tests passed successfully.