Merge pull request #447 from esteemapp/bugfix/#423

Bugfix #423
This commit is contained in:
uğur erdal 2019-01-17 20:25:35 +03:00 committed by GitHub
commit c395ec373d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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