Fix input blur error (#443)
This commit is contained in:
parent
5a037f70f1
commit
21f9defe0b
2 changed files with 2 additions and 2 deletions
|
|
@ -408,4 +408,4 @@ const getStyleSheet = makeStyleSheetFromTheme((theme) => {
|
|||
});
|
||||
});
|
||||
|
||||
export default injectIntl(PostTextbox);
|
||||
export default injectIntl(PostTextbox, {withRef: true});
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue