Fix missing text shape props in onShapeChange (#516)

This commit is contained in:
Martin Valchev 2022-01-18 11:10:02 +02:00 committed by GitHub
parent 89797787e8
commit 89606b97d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,6 +86,7 @@ export class TextUtil extends TDShapeUtil<T, E> {
}
onShapeChange?.({
...shape,
id: shape.id,
point: Vec.sub(shape.point, delta),
text: TLDR.normalizeText(e.currentTarget.value),