Hide empty autocomplete and remove word counter

This commit is contained in:
Aviral Dasgupta 2016-09-08 00:36:23 +05:30
parent 802ec1169f
commit 8974442084
3 changed files with 3 additions and 5 deletions

View file

@ -241,7 +241,6 @@ export default class MessageComposerInput extends React.Component {
if (this.props.onInputStateChanged && nextState !== this.state) {
const state = this.getSelectionInfo(nextState.editorState);
state.isRichtextEnabled = nextState.isRichtextEnabled;
state.wordCount = nextState.editorState.getCurrentContent().getPlainText().split(' ').filter(w => !!w).length;
this.props.onInputStateChanged(state);
}
}