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();
|
const text = getText();
|
||||||
if (text.length > 0) {
|
onSubmit(text.trim());
|
||||||
onSubmit(text);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (inputApi) {
|
if (inputApi) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue