Fix textbox element bindings on size changes (#2145)
Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user