mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-08-31 22:27:34 +02: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