Fix textbox element bindings on size changes (#2145)
Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
parent
f2401c9163
commit
9cac7816cc
@ -1683,6 +1683,9 @@ class App extends React.Component<ExcalidrawProps, AppState> {
|
|||||||
},
|
},
|
||||||
onChange: withBatchedUpdates((text) => {
|
onChange: withBatchedUpdates((text) => {
|
||||||
updateElement(text);
|
updateElement(text);
|
||||||
|
if (isNonDeletedElement(element)) {
|
||||||
|
updateBoundElements(element);
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
onSubmit: withBatchedUpdates((text) => {
|
onSubmit: withBatchedUpdates((text) => {
|
||||||
const isDeleted = !text.trim();
|
const isDeleted = !text.trim();
|
||||||
|
@ -88,6 +88,7 @@ export const transformElements = (
|
|||||||
pointerX,
|
pointerX,
|
||||||
pointerY,
|
pointerY,
|
||||||
);
|
);
|
||||||
|
updateBoundElements(element);
|
||||||
} else if (transformHandleType) {
|
} else if (transformHandleType) {
|
||||||
resizeSingleElement(
|
resizeSingleElement(
|
||||||
element,
|
element,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user