Handle user input #14

Merged
senaduka merged 10 commits from handle-user-input into master 2018-02-07 11:06:37 +01:00
Showing only changes of commit 84edb5563f - Show all commits

View File

@@ -126,7 +126,7 @@ class IntentDetails extends Component {
handleIntentNameEdit(e){
if (e.length === INTENT_NAME_MAX_LENGTH) return;
let newIntent = this.state.intent;
newIntent.intentName = e;
newIntent.intentName = e.replace(/\s/g, ''); //remove all spaces from intent name
this.setState({intent: newIntent});
}
}