Fix input blur error (#443)

This commit is contained in:
Chris Duarte 2017-03-31 15:14:29 -07:00 committed by enahum
parent 5a037f70f1
commit 21f9defe0b
2 changed files with 2 additions and 2 deletions

View file

@ -408,4 +408,4 @@ const getStyleSheet = makeStyleSheetFromTheme((theme) => {
});
});
export default injectIntl(PostTextbox);
export default injectIntl(PostTextbox, {withRef: true});

View file

@ -91,7 +91,7 @@ export default class Channel extends React.PureComponent {
};
openChannelDrawer = () => {
this.postTextbox.getWrappedInstance().blur();
this.postTextbox.getWrappedInstance().getWrappedInstance().blur();
this.props.actions.openChannelDrawer();
};