Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly set the dropdown value when dealing with remote loaded choices
This problem happens only when we have a dropdown created from a select that loads remote content. In this scenario, we don't know in advance which choices will be available, so we start with a select without any options. When an choice is selected, module.set.value will try to set the select value, but it will fail, since there's no options. To fix this, module.set.value will add a new option to the select, before setting the value. This will be done only if the dropdown input is a select and if we are dealing with remote loaded content.
- Loading branch information
58b4046
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love when things are this easy to review