fix(react): update node dimensions when handle bounds undefined
This commit is contained in:
@@ -240,7 +240,10 @@ export function updateNodeDimensions<NodeType extends InternalNodeBase>(
|
|||||||
const doUpdate = !!(
|
const doUpdate = !!(
|
||||||
dimensions.width &&
|
dimensions.width &&
|
||||||
dimensions.height &&
|
dimensions.height &&
|
||||||
(node.measured?.width !== dimensions.width || node.measured?.height !== dimensions.height || update.force)
|
(node.measured?.width !== dimensions.width ||
|
||||||
|
node.measured?.height !== dimensions.height ||
|
||||||
|
!node.internals.handleBounds ||
|
||||||
|
update.force)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (doUpdate) {
|
if (doUpdate) {
|
||||||
|
|||||||
Reference in New Issue
Block a user