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:
@ -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,
|
||||
);
|
||||
|
Reference in New Issue
Block a user