Merge pull request #2538 from wbkd/neo-patch-3
Refactor: Add isolated stacking context
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'@reactflow/core': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Refactor: put React Flow in isolated stacking context
|
||||||
@@ -51,8 +51,9 @@ const initDefaultViewport: Viewport = { x: 0, y: 0, zoom: 1 };
|
|||||||
const wrapperStyle: CSSProperties = {
|
const wrapperStyle: CSSProperties = {
|
||||||
width: '100%',
|
width: '100%',
|
||||||
height: '100%',
|
height: '100%',
|
||||||
position: 'relative',
|
|
||||||
overflow: 'hidden',
|
overflow: 'hidden',
|
||||||
|
position: 'relative',
|
||||||
|
zIndex: 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
const ReactFlow = forwardRef<ReactFlowRefType, ReactFlowProps>(
|
const ReactFlow = forwardRef<ReactFlowRefType, ReactFlowProps>(
|
||||||
|
|||||||
Reference in New Issue
Block a user