CompositionInput: Submit trimmed text instead of not submitting
This commit is contained in:
parent
13333e0b0d
commit
8fd4ff95db
1 changed files with 1 additions and 3 deletions
|
@ -216,9 +216,7 @@ export const CompositionInput: React.ComponentType<Props> = props => {
|
|||
}
|
||||
|
||||
const text = getText();
|
||||
if (text.length > 0) {
|
||||
onSubmit(text);
|
||||
}
|
||||
onSubmit(text.trim());
|
||||
};
|
||||
|
||||
if (inputApi) {
|
||||
|
|
Loading…
Add table
Reference in a new issue