Explorar o código

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 %!s(int64=5) %!d(string=hai) anos
pai
achega
aad6e8f434
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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;
             }