mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: do not bind text to container using text tool when it has text already (#6694)
* fix: do not bind text to container using text tool when it has text already * Update src/element/textWysiwyg.test.tsx
This commit is contained in:
parent
0aa1e66486
commit
6d56634289
2 changed files with 53 additions and 1 deletions
|
@ -3054,7 +3054,10 @@ class App extends React.Component<AppProps, AppState> {
|
|||
container,
|
||||
);
|
||||
if (container && parentCenterPosition) {
|
||||
shouldBindToContainer = true;
|
||||
const boundTextElementToContainer = getBoundTextElement(container);
|
||||
if (!boundTextElementToContainer) {
|
||||
shouldBindToContainer = true;
|
||||
}
|
||||
}
|
||||
let existingTextElement: NonDeleted<ExcalidrawTextElement> | null = null;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue