mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Perform Id comparisons instead of reference comparisons in onDoubleClick
This commit is contained in:
parent
0f3d659d18
commit
75e0a31d3c
1 changed files with 1 additions and 1 deletions
|
@ -1077,7 +1077,7 @@ export class App extends React.Component<{}, AppState> {
|
||||||
|
|
||||||
if (elementAtPosition && isTextElement(elementAtPosition)) {
|
if (elementAtPosition && isTextElement(elementAtPosition)) {
|
||||||
elements = elements.filter(
|
elements = elements.filter(
|
||||||
element => element !== elementAtPosition
|
element => element.id !== elementAtPosition.id
|
||||||
);
|
);
|
||||||
this.forceUpdate();
|
this.forceUpdate();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue