This commit is contained in:
u-e 2019-01-17 11:08:24 +03:00
parent dff45476de
commit 842d90e522

View File

@ -38,7 +38,8 @@ export default class TagAreaView extends Component {
// Component Functions
_handleOnChange = (text, i) => {
this.setState({ currentText: text.replace(/\s/g, '') });
this.setState({ currentText: text.replace(/\s/g, '').toLowerCase() });
if (text.indexOf(' ') > 0 && text) {
this._handleTagAdded();
}