Canvas: Inconsistent border behavior (#61794)
This commit is contained in:
1 parent
e2ec219f6a
commit
da7bf56c03
1 file changed
+6
-1
@@ -153,7 +153,7 @@ export class CanvasPanel extends Component<Props, State> {
|
||||
};
|
||||
|
||||
shouldComponentUpdate(nextProps: Props, nextState: State) {
|
||||
const { width, height, data } = this.props;
|
||||
const { width, height, data, options } = this.props;
|
||||
let changed = false;
|
||||
|
||||
if (width !== nextProps.width || height !== nextProps.height) {
|
||||
@@ -166,6 +166,11 @@ export class CanvasPanel extends Component<Props, State> {
|
||||
changed = true;
|
||||
}
|
||||
|
||||
if (options !== nextProps.options && !this.scene.ignoreDataUpdate) {
|
||||
this.scene.updateData(nextProps.data);
|
||||
changed = true;
|
||||
}
|
||||
|
||||
if (this.state.refresh !== nextState.refresh) {
|
||||
changed = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user