File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed
packages/x-flow/src/components/CandidateNode Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,6 @@ const CandidateNode = () => {
31
31
} ) )
32
32
) ;
33
33
34
-
35
- console . log ( candidateNode , 'candidateNode+++' )
36
-
37
34
useEventListener ( 'click' , ( ev ) => {
38
35
if ( ! candidateNode ) {
39
36
return ;
@@ -56,27 +53,21 @@ const CandidateNode = () => {
56
53
setCandidateNode ( null ) ;
57
54
} ) ;
58
55
59
- useEventListener ( 'contextmenu' , ( e ) => {
60
- // const { candidateNode } = workflowStore.getState()
61
- // if (candidateNode) {
62
- // e.preventDefault()
63
- // workflowStore.setState({ candidateNode: undefined })
64
- // }
65
- } )
66
-
67
56
if ( ! candidateNode ) {
68
57
return null
69
58
}
59
+
60
+ console . log ( mousePosition , '=======000000' )
70
61
71
62
return (
72
63
< div
73
- className = 'absolute z-10'
74
64
style = { {
75
- zIndex : 100 ,
76
65
left : mousePosition ?. elementX ,
77
66
top : mousePosition ?. elementY ,
78
67
transform : `scale(${ zoom } )` ,
79
68
transformOrigin : '0 0' ,
69
+ position : 'absolute' ,
70
+ zIndex : 10000
80
71
} }
81
72
>
82
73
< CustomNode { ...candidateNode as any } type = { candidateNode ?. data ?. _nodeType } />
You can’t perform that action at this time.
0 commit comments