mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
fix some compose form errors
This commit is contained in:
parent
b8723f3fce
commit
7bac99c844
@ -55,7 +55,6 @@ class ComposeForm extends ImmutablePureComponent {
|
||||
onFetchSuggestions: PropTypes.func,
|
||||
onSuggestionSelected: PropTypes.func,
|
||||
onChangeSpoilerText: PropTypes.func,
|
||||
onPaste: PropTypes.func,
|
||||
onPickEmoji: PropTypes.func,
|
||||
showSearch: PropTypes.bool,
|
||||
anyMedia: PropTypes.bool,
|
||||
@ -88,8 +87,7 @@ class ComposeForm extends ImmutablePureComponent {
|
||||
return [
|
||||
this.props.spoiler? this.props.spoilerText: '',
|
||||
countableText(this.props.text),
|
||||
this.props.advancedOptions && this.props.advancedOptions.get('do_not_federate') ? ' 👁️' : ''
|
||||
].join('');
|
||||
this.props.advancedOptions && this.props.advancedOptions.get('do_not_federate') ? ' 👁️' : ''].join('');
|
||||
}
|
||||
|
||||
canSubmit = () => {
|
||||
@ -173,7 +171,7 @@ class ComposeForm extends ImmutablePureComponent {
|
||||
this.handleSubmit();
|
||||
}
|
||||
|
||||
if (e.keyCode == 13 && e.altKey) {
|
||||
if (e.keyCode === 13 && e.altKey) {
|
||||
this.handleSecondarySubmit();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user