소스 검색

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

Chang Yan 5 년 전
부모
커밋
6fe40516bf
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/components/App.tsx

+ 3 - 0
src/components/App.tsx

@@ -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,