Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
fix(select): Account for when options are not loaded immediately #17405
Short description of what this resolves:
This PR resolves an issue where options for
Setting them after a delay (such as an API call) and then setting the selected value causes a race condition where the selected value is set internally before all of the options have been set (due to the async nature of how we set the options).
This PR forces a re-render once options have been set only if a selected value has already been set.
Changes proposed in this pull request:
Note: This was originally thought to be an issue with our Angular wrapper, but it ended up being an issue in the underlying component.