Browse Source

fix: selection not working sometimes when transformHandles disabled

ad1992 3 years ago
parent
commit
5f57daa132
1 changed files with 0 additions and 9 deletions
  1. 0 9
      src/components/App.tsx

+ 0 - 9
src/components/App.tsx

@@ -3461,15 +3461,6 @@ class App extends React.Component<AppProps, AppState> {
       const elements = this.scene.getElements();
       const elements = this.scene.getElements();
       const selectedElements = getSelectedElements(elements, this.state);
       const selectedElements = getSelectedElements(elements, this.state);
       if (selectedElements.length === 1 && !this.state.editingLinearElement) {
       if (selectedElements.length === 1 && !this.state.editingLinearElement) {
-        if (selectedElements[0].type === "custom") {
-          const config = getCustomElementConfig(
-            this.props.customElementsConfig,
-            selectedElements[0].customType,
-          );
-          if (!config?.transformHandles) {
-            return false;
-          }
-        }
         const elementWithTransformHandleType =
         const elementWithTransformHandleType =
           getElementWithTransformHandleType(
           getElementWithTransformHandleType(
             elements,
             elements,