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 already present (#4946)
* fix: don't bind text to container if already present * Add specs and update condition
This commit is contained in:
parent
e29d3fc5e6
commit
8e447b4c32
2 changed files with 48 additions and 2 deletions
|
@ -2215,7 +2215,11 @@ class App extends React.Component<AppProps, AppState> {
|
|||
(shouldBind || parentCenterPosition)
|
||||
) {
|
||||
container = getTextBindableContainerAtPosition(
|
||||
this.scene.getElements().filter((ele) => !isTextElement(ele)),
|
||||
this.scene
|
||||
.getElements()
|
||||
.filter(
|
||||
(ele) => isTextBindableContainer(ele) && !getBoundTextElement(ele),
|
||||
),
|
||||
sceneX,
|
||||
sceneY,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue