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) => {
|
||||
updateElement(text);
|
||||
if (isNonDeletedElement(element)) {
|
||||
updateBoundElements(element);
|
||||
}
|
||||
}),
|
||||
onSubmit: withBatchedUpdates((text) => {
|
||||
const isDeleted = !text.trim();
|
||||
|
@ -88,6 +88,7 @@ export const transformElements = (
|
||||
pointerX,
|
||||
pointerY,
|
||||
);
|
||||
updateBoundElements(element);
|
||||
} else if (transformHandleType) {
|
||||
resizeSingleElement(
|
||||
element,
|
||||
|
Loading…
x
Reference in New Issue
Block a user