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
pull/329/head^2
Christopher Chedeau 5 years ago committed by GitHub
parent 44657efe71
commit aad6e8f434
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save