Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Select box options not matching state on select change event #1916
I have a select box with options 0 to 5. Select box onchange event will always set the selected state to 5. On first selection of any option, it does select 5, however not in subsequent selections.
On any subsequent selections, the option should remain as 5.
However, subsequent selections, does not remain 5.
Hoping i'm not the one to fix it.
Steps to Reproduce (for bugs)
https://jsfiddle.net/7tj9pyet/ with Mithril 1.1.3, tested on Chromium and Vivaldi.
I hadn't yet seen your previous message before posting mine. Removing the
@pygy I tried to write the test, but I hit a problem the moment I do:
Sounds like I need to mess with domMock which I think I won't. Can you take over? Also how do you run just a single test? I don't think you need me to remove