refactor(internals): use non enumerable props
This commit is contained in:
@@ -11,6 +11,7 @@ import {
|
||||
ReactFlowState,
|
||||
WrapNodeProps,
|
||||
} from '../../types';
|
||||
import { isParentSymbol, zSymbol } from '../../utils';
|
||||
|
||||
interface NodeRendererProps {
|
||||
nodeTypes: NodeTypesWrapped;
|
||||
@@ -117,8 +118,8 @@ const NodeRenderer = (props: NodeRendererProps) => {
|
||||
isConnectable={isConnectable}
|
||||
resizeObserver={resizeObserver}
|
||||
dragHandle={node.dragHandle}
|
||||
zIndex={node.z ?? 0}
|
||||
isParent={!!node.isParent}
|
||||
zIndex={node[zSymbol] ?? 0}
|
||||
isParent={!!node[isParentSymbol]}
|
||||
noDragClassName={props.noDragClassName}
|
||||
noPanClassName={props.noPanClassName}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user