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