Fix tags after Account view (#4070)
This commit is contained in:
parent
9c00eb4e8a
commit
81641a5839
@ -71,15 +71,15 @@ export default class ActionbarSearch extends Component {
|
||||
key='searchAccount'>
|
||||
<div className={ inputContainerClasses.join(' ') }>
|
||||
<InputChip
|
||||
addOnBlur
|
||||
className={ styles.input }
|
||||
hint='Enter search input...'
|
||||
ref='inputChip'
|
||||
tokens={ tokens }
|
||||
|
||||
onBlur={ this.handleSearchBlur }
|
||||
onInputChange={ this.handleInputChange }
|
||||
onTokensChange={ this.handleTokensChange }
|
||||
|
||||
addOnBlur
|
||||
/>
|
||||
</div>
|
||||
|
||||
@ -118,6 +118,10 @@ export default class ActionbarSearch extends Component {
|
||||
handleSearchClick = () => {
|
||||
const { showSearch } = this.state;
|
||||
|
||||
if (!showSearch) {
|
||||
this.refs.inputChip.focus();
|
||||
}
|
||||
|
||||
this.handleOpenSearch(!showSearch);
|
||||
}
|
||||
|
||||
|
@ -27,13 +27,14 @@
|
||||
}
|
||||
|
||||
.toolbuttons {
|
||||
}
|
||||
overflow: hidden;
|
||||
|
||||
.toolbuttons button {
|
||||
margin: 10px 0 10px 16px !important;
|
||||
color: white !important;
|
||||
}
|
||||
button {
|
||||
margin: 10px 0 10px 16px !important;
|
||||
color: white !important;
|
||||
}
|
||||
|
||||
.toolbuttons svg {
|
||||
fill: white !important;
|
||||
svg {
|
||||
fill: white !important;
|
||||
}
|
||||
}
|
||||
|
@ -170,6 +170,10 @@ export default class InputChip extends Component {
|
||||
.filter(v => v !== value));
|
||||
|
||||
this.handleTokensChange(newTokens);
|
||||
this.focus();
|
||||
}
|
||||
|
||||
focus = () => {
|
||||
this.refs.chipInput.focus();
|
||||
}
|
||||
|
||||
|
@ -220,8 +220,8 @@ class List extends Component {
|
||||
const tags = account.meta.tags || [];
|
||||
const name = account.name || '';
|
||||
|
||||
const values = []
|
||||
.concat(tags, name)
|
||||
const values = tags
|
||||
.concat(name)
|
||||
.map(v => v.toLowerCase());
|
||||
|
||||
return searchValues
|
||||
|
Loading…
Reference in New Issue
Block a user