feat(node-toolbar): use z-index of the node for the toolbar

This commit is contained in:
Christopher Möller
2022-11-16 09:56:34 +01:00
parent beba0a32de
commit 20a6653577
2 changed files with 14 additions and 3 deletions
@@ -3,7 +3,7 @@ import { createPortal } from 'react-dom';
import { ReactFlowState, useStore } from '@reactflow/core';
function NodeToolbarPortal({ children }: { children: ReactNode }) {
const wrapperRef = useStore((state: ReactFlowState) => state.domNode?.querySelector('.react-flow__pane'));
const wrapperRef = useStore((state: ReactFlowState) => state.domNode?.querySelector('.react-flow__renderer'));
if (!wrapperRef) {
return null;