Fix tags after Account view (#4070)

This commit is contained in:
Nicolas Gotchac 2017-01-06 17:23:04 +01:00 committed by Jaco Greeff
parent 9c00eb4e8a
commit 81641a5839
4 changed files with 20 additions and 11 deletions

View File

@ -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);
}

View File

@ -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;
}
}

View File

@ -170,6 +170,10 @@ export default class InputChip extends Component {
.filter(v => v !== value));
this.handleTokensChange(newTokens);
this.focus();
}
focus = () => {
this.refs.chipInput.focus();
}

View File

@ -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