mirror of
https://github.com/excalidraw/excalidraw
synced 2025-07-25 13:58:22 +08:00
fix: text element should be rendered correctly when pasted to a version before measurements change
This commit is contained in:
@ -1653,7 +1653,7 @@ class App extends React.Component<AppProps, AppState> {
|
||||
this.scene.replaceAllElements(nextElements);
|
||||
|
||||
newElements.forEach((newElement) => {
|
||||
if (isTextElement(newElement) && isBoundToContainer(newElement)) {
|
||||
if (isTextElement(newElement)) {
|
||||
const container = getContainerElement(newElement);
|
||||
redrawTextBoundingBox(newElement, container);
|
||||
}
|
||||
|
Reference in New Issue
Block a user