CompositionInput: Submit trimmed text instead of not submitting

This commit is contained in:
Scott Nonnenberg 2020-10-22 17:01:15 -07:00 committed by Evan Hahn
parent 13333e0b0d
commit 8fd4ff95db

View file

@ -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) {