mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: selection not working sometimes when transformHandles disabled
This commit is contained in:
parent
db9c9eb3d2
commit
5f57daa132
1 changed files with 0 additions and 9 deletions
|
@ -3461,15 +3461,6 @@ class App extends React.Component<AppProps, AppState> {
|
|||
const elements = this.scene.getElements();
|
||||
const selectedElements = getSelectedElements(elements, this.state);
|
||||
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 =
|
||||
getElementWithTransformHandleType(
|
||||
elements,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue