mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-20 05:51:08 +02:00
Fix send message on enter
This commit is contained in:
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…
x
Reference in New Issue
Block a user