From 616e8eaed7117be0aee563d7731d1dfc55d54ee2 Mon Sep 17 00:00:00 2001 From: u-e Date: Thu, 17 Jan 2019 11:08:24 +0300 Subject: [PATCH] closed #423 --- src/components/editorElements/tagArea/view/tagAreaView.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/editorElements/tagArea/view/tagAreaView.js b/src/components/editorElements/tagArea/view/tagAreaView.js index 0cc51663e..cccabe257 100644 --- a/src/components/editorElements/tagArea/view/tagAreaView.js +++ b/src/components/editorElements/tagArea/view/tagAreaView.js @@ -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(); }