MDL-68778 user: Fetch select from selected option
authorAndrew Nicols <andrew@nicols.co.uk>
Wed, 20 May 2020 00:47:02 +0000 (08:47 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Wed, 20 May 2020 05:17:50 +0000 (13:17 +0800)
commitdb5be3a31c3cc5109b10bc2b680087f4982fd06b
tree2905c509c64a830d30674369c2a97a9b65c1b378
parent1afe68f3820b2b5996aa313357e3ddd3d5890192
MDL-68778 user: Fetch select from selected option

It seems that the HTMLSelectElement behaves slightly different on Linux
vs MacOS.

On Linux with Firefox 47 when selecting an option the
HTMLOptionElement is returned, whereas on MavOS the HTMLSelectElement
that the Option belongs to is returned.

We need to normalise the value here before resetting the currently
selected item.
user/amd/build/participants.min.js
user/amd/build/participants.min.js.map
user/amd/src/participants.js