aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorphilippe-perrin-sonarsource <philippe.perrin@sonarsource.com>2019-06-18 11:29:42 +0200
committersonartech <sonartech@sonarsource.com>2019-06-28 08:45:45 +0200
commit0d76849de3972733bf0105eda59870cb16560dc5 (patch)
tree2482e69a0e95e2a6acd7a69be96d42a59bd285b9 /server/sonar-web
parent167354eaadd73a88892299adb7fe22b7deb165e2 (diff)
downloadsonarqube-0d76849de3972733bf0105eda59870cb16560dc5.tar.gz
sonarqube-0d76849de3972733bf0105eda59870cb16560dc5.zip
SONAR-12208 List filter is not correct after search reset
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/components/SelectList/SelectList.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/components/SelectList/SelectList.tsx b/server/sonar-web/src/main/js/components/SelectList/SelectList.tsx
index 34e701e57aa..b1c7e9aa665 100644
--- a/server/sonar-web/src/main/js/components/SelectList/SelectList.tsx
+++ b/server/sonar-web/src/main/js/components/SelectList/SelectList.tsx
@@ -75,8 +75,9 @@ export default class SelectList extends React.PureComponent<Props, State> {
};
handleQueryChange = (query: string) => {
- this.setState({ loading: true, query });
- this.props.onSearch(query, this.getFilter()).then(this.stopLoading, this.stopLoading);
+ this.setState({ loading: true, query }, () => {
+ this.props.onSearch(query, this.getFilter()).then(this.stopLoading, this.stopLoading);
+ });
};
getFilter = () => {