Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
aad6e8f434
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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;
             }