Skip to content

Commit c17412b

Browse files
authored
fix: update props when TransformWrapper is updated (#449)
1 parent bc3399d commit c17412b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/core/instance.core.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ export class ZoomPanPinch {
110110
};
111111

112112
update = (newProps: ReactZoomPanPinchProps) => {
113+
this.props = newProps;
113114
handleCalculateBounds(this, this.transformState.scale);
114115
this.setup = createSetup(newProps);
115116
};

0 commit comments

Comments
 (0)