Reset to selection after creating a text (#333)

Fixes #252

Test plan:
- Click on text icon
- Click anywhere to start entering text
- Add a letter
- Make sure the cursor is selection and not text
- Click anywhere else, make sure it completes the text and not create a new one
This commit is contained in:
Christopher Chedeau 2020-01-11 21:00:55 -08:00 committed by GitHub
parent 44657efe71
commit aad6e8f434
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -568,6 +568,7 @@ export class App extends React.Component<{}, AppState> {
});
}
});
this.setState({ elementType: "selection" });
return;
}