Skip to content

Commit 1a4ee2c

Browse files
authored
Merge pull request #1746 from magda-io/issue/1704
In web dataset page, made facet search reset when user clicks on face…
2 parents 99a318a + eed8a5e commit 1a4ee2c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGES.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## 0.0.49
22

3+
- In web dataset page, made facet search reset when user clicks on facet button so that it does not show result from last time.
34
- Made issued and update date not appear when valid dates are not available.
45
- Specify correct externalURL and namespace for gitlab to fix deployment auth.
56
- Add a CSV connector

magda-web-client/src/Components/SearchFacets/FacetBasic.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ class FacetBasic extends Component {
3535
}
3636

3737
render() {
38+
function resetAndToggle() {
39+
this.props.searchFacet();
40+
this.props.toggleFacet();
41+
}
3842
return (
3943
<div className="facet-wrapper">
4044
<FacetHeader
@@ -44,7 +48,7 @@ class FacetBasic extends Component {
4448
title={this.props.title}
4549
activeOptions={this.props.activeOptions}
4650
hasQuery={this.props.hasQuery}
47-
onClick={this.props.toggleFacet}
51+
onClick={resetAndToggle.bind(this)}
4852
ref={this.facetHeader}
4953
updateComponentAlignment={this.updateComponentAlignment}
5054
/>

0 commit comments

Comments
 (0)