mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
2ace3d54dc
The selected value of the dropdown was being cleared when the dropdown was opened, this was causing an error when submitting the form if the field was required. The main cause was that we were emptying the select before loading new values, this solution was created because of an issue where we could not deselect values if the list was reloaded. To fix this problem, I added an empty option as the first element of the select only when deselecting a certain item.