CompositionInput: Submit trimmed text instead of not submitting
This commit is contained in:

committed by
Evan Hahn

parent
13333e0b0d
commit
8fd4ff95db
@@ -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) {
|
||||
|
Reference in New Issue
Block a user