deselect all elements when inserting text with double click (#996)

This commit is contained in:
Chang Yan 2020-03-17 23:11:27 -07:00 committed by GitHub
parent 7d57d124bd
commit 6fe40516bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1028,6 +1028,9 @@ export class App extends React.Component<any, AppState> {
});
};
// deselect all other elements when inserting text
this.setState({ selectedElementIds: {} });
textWysiwyg({
initText: element.text,
x: textX,