Skip to content
Snippets Groups Projects
Commit dbd8c99f authored by Maz Ameli's avatar Maz Ameli
Browse files

fix pagination conflict

parents 9d91a166 149a4b73
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,10 @@ export default class EntitySearch extends Component {
this.setState({ searchText }, this.applyFiltersAfterFilterChange)
}
resetSearchText = () => this.setSearchText("")
resetSearchText = () => {
this.setSearchText("")
this.searchHeaderInput.focus()
}
applyFiltersAfterFilterChange = () => this.applyFiltersForEntities(this.props.entities)
......@@ -303,7 +306,11 @@ class SearchResultsList extends Component {
<Icon name="chevronleft" size={14}/>
</span>
<span
className={cx("flex align-center justify-center rounded", {"cursor-pointer bg-grey-2 text-white": end + 1 < entityCount}, {"bg-grey-0 text-grey-1": end + 1 >= entityCount})}
className={cx(
"flex align-center justify-center rounded",
{ "cursor-pointer bg-grey-2 text-white": end + 1 < entityCount },
{ "bg-grey-0 text-grey-2": end + 1 >= entityCount }
)}
style={{width: "22px", height: "22px"}}
onClick={() => this.setState({page: page + 1})}>
<Icon name="chevronright" size={14}/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment