Преглед изворни кода

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,