updated text color

This commit is contained in:
u-e 2019-02-12 17:54:16 +03:00
parent 33b993cc45
commit aca8c94765
2 changed files with 4 additions and 2 deletions

View File

@ -18,6 +18,7 @@ export default EStyleSheet.create({
textInput: { textInput: {
fontFamily: '$editorFont', fontFamily: '$editorFont',
fontSize: 10, fontSize: 10,
color: "$primaryLightGray"
}, },
isPin: { isPin: {
backgroundColor: '$primaryBlue', backgroundColor: '$primaryBlue',

View File

@ -63,13 +63,14 @@ export default class TagAreaView extends Component {
if (_currentText && chips && chips.length < chipsCount) { if (_currentText && chips && chips.length < chipsCount) {
this.setState({ this.setState({
chips: [...chips, _currentText], chips: [...chips, _currentText],
currentText: '',
}); });
} }
if (handleTagChanged && chips.length < chipsCount + 1) { if (handleTagChanged && chips.length < chipsCount + 1) {
handleTagChanged([...chips, _currentText]); handleTagChanged([...chips, _currentText]);
} }
this.setState({currentText: ''});
}; };
_handleTagRemove = (i) => { _handleTagRemove = (i) => {
@ -86,7 +87,7 @@ export default class TagAreaView extends Component {
// Restart chips // Restart chips
if (chips && chips.length === 1 && i === 0) { if (chips && chips.length === 1 && i === 0) {
this.setState({ chips: [' '] }); this.setState({ chips: [' '], currentText: '' });
} }
}; };