Fix send message on enter
This commit is contained in:
parent
4d089dcc05
commit
c9bf7da629
2 changed files with 2 additions and 2 deletions
|
@ -415,7 +415,7 @@ class MessageComposer extends React.Component<IProps, IState> {
|
||||||
<SendWysiwygComposer key="controls_input"
|
<SendWysiwygComposer key="controls_input"
|
||||||
disabled={this.state.haveRecording}
|
disabled={this.state.haveRecording}
|
||||||
onChange={this.onWysiwygChange}
|
onChange={this.onWysiwygChange}
|
||||||
onSend={() => this.sendMessage}
|
onSend={this.sendMessage}
|
||||||
/>,
|
/>,
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -23,7 +23,7 @@ import { WysiwygComposer } from './components/WysiwygComposer';
|
||||||
interface SendWysiwygComposerProps {
|
interface SendWysiwygComposerProps {
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
onChange: (content: string) => void;
|
onChange: (content: string) => void;
|
||||||
onSend(): () => void;
|
onSend: () => void;
|
||||||
}
|
}
|
||||||
interface ContentProps {
|
interface ContentProps {
|
||||||
disabled: boolean;
|
disabled: boolean;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue