If a value in menu is already selected, then selectByValue of a different value will not work. This is because we only allow selection of options deemed interactive and hidden options are not part of that. We should only prevent selection of "disabled" options.
To Reproduce
Steps to reproduce the behavior:
Use an preset value menu
Call menu.value = to a different valid menu option value
See error - no selection update is made
Expected behavior
Selection should be updated to the new value passed.
Describe the bug
If a value in menu is already selected, then selectByValue of a different value will not work. This is because we only allow selection of options deemed interactive and hidden options are not part of that. We should only prevent selection of "disabled" options.
To Reproduce
Steps to reproduce the behavior:
menu.value =
to a different valid menu option valueExpected behavior
Selection should be updated to the new value passed.