appbaseio / appbaseio/reactivesearch
Consider defaultSelected value if only it is present in the aggs data from ES
Open
bug
enhancement
- Dominant language
- JavaScript
- Stars
- 4.9k
- Forks
- 478
- PR merge metrics
- No merged PRs in 30d
Description
## Bug Report
**Description:**
Currently, the value of `defaultSelected` is directly passed into the `updateQuery` method, without checking if the value is valid or not (i.e. not checking if the value exists in the aggregations data we received from ElasticSearch). This results in inconsistent behavior, since we do this validation in user-driven-components (like ToggleButton)
Contributor guide
Assessment
This issue has not been assessed yet.