Change to arrow function
This commit is contained in:
parent
a140f7567a
commit
8095620fac
@ -47,6 +47,8 @@ class MessageForm extends Component {
|
||||
}
|
||||
|
||||
handleMessageKeyDown(e) {
|
||||
|
||||
//TODO Prevent send message pressing enter on mobile and/or virtual keyboard
|
||||
if (e.keyCode === 13 && !e.shiftKey) {
|
||||
e.preventDefault();
|
||||
|
||||
@ -125,7 +127,7 @@ class MessageForm extends Component {
|
||||
label={intl.formatMessage(messages.submitLabel)}
|
||||
hideLabel={true}
|
||||
icon={"right_arrow"}
|
||||
onClick={function(){}}
|
||||
onClick={()=>{}}
|
||||
/>
|
||||
</form>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user