fix: pasted elements except binded text once paste action is complete (#4472)
This commit is contained in:
parent
1fd347cade
commit
f463c047c0
@ -123,6 +123,7 @@ import {
|
||||
hasBoundTextElement,
|
||||
isBindingElement,
|
||||
isBindingElementType,
|
||||
isBoundToContainer,
|
||||
isImageElement,
|
||||
isInitializedImageElement,
|
||||
isLinearElement,
|
||||
@ -1419,7 +1420,7 @@ class App extends React.Component<AppProps, AppState> {
|
||||
...this.state,
|
||||
isLibraryOpen: false,
|
||||
selectedElementIds: newElements.reduce((map, element) => {
|
||||
if (isTextElement(element) && !element.containerId) {
|
||||
if (!isBoundToContainer(element)) {
|
||||
map[element.id] = true;
|
||||
}
|
||||
return map;
|
||||
|
Loading…
x
Reference in New Issue
Block a user