瀏覽代碼

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
Christopher Chedeau 5 年之前
父節點
當前提交
aad6e8f434
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/index.tsx

+ 1 - 0
src/index.tsx

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