mirror of https://github.com/vector-im/riot-web
Fix send message on enter
parent
4d089dcc05
commit
c9bf7da629
|
@ -415,7 +415,7 @@ class MessageComposer extends React.Component<IProps, IState> {
|
|||
<SendWysiwygComposer key="controls_input"
|
||||
disabled={this.state.haveRecording}
|
||||
onChange={this.onWysiwygChange}
|
||||
onSend={() => this.sendMessage}
|
||||
onSend={this.sendMessage}
|
||||
/>,
|
||||
);
|
||||
} else {
|
||||
|
|
|
@ -23,7 +23,7 @@ import { WysiwygComposer } from './components/WysiwygComposer';
|
|||
interface SendWysiwygComposerProps {
|
||||
disabled?: boolean;
|
||||
onChange: (content: string) => void;
|
||||
onSend(): () => void;
|
||||
onSend: () => void;
|
||||
}
|
||||
interface ContentProps {
|
||||
disabled: boolean;
|
||||
|
|
Loading…
Reference in New Issue