mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: don't bind text to container if double clicked else instead of center (#5105)
This commit is contained in:
parent
7df8302ba2
commit
399ce1e01a
2 changed files with 24 additions and 2 deletions
|
@ -2239,8 +2239,7 @@ class App extends React.Component<AppProps, AppState> {
|
|||
if (isTextElement(selectedElements[0])) {
|
||||
existingTextElement = selectedElements[0];
|
||||
} else if (isTextBindableContainer(selectedElements[0], false)) {
|
||||
container = selectedElements[0];
|
||||
existingTextElement = getBoundTextElement(container);
|
||||
existingTextElement = getBoundTextElement(selectedElements[0]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue