From aad6e8f434bcfab9adf630c8d9964262dc7d0bc6 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Sat, 11 Jan 2020 21:00:55 -0800 Subject: [PATCH] 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 --- src/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.tsx b/src/index.tsx index 7b8f06a3..9b636155 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -568,6 +568,7 @@ export class App extends React.Component<{}, AppState> { }); } }); + this.setState({ elementType: "selection" }); return; }