mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-14 21:10:37 +02:00
fix: selection not working sometimes when transformHandles disabled
This commit is contained in:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user