had dragged, how to update coverd area
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- javascript, react
- Ambito
- frontend
Direzione di ricerca
Start by reproducing the drag interaction involving Draggable inside Popup and EdgeLabelRenderer, using the provided component structure. Investigate why the Popup's previous area remains covered after dragging; done means the old area is cleared without breaking dragging or the popup display.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I use mui Unstable_Popup component that could drag on the react flow component. Its draged well, but the old area of Unstable_Popup remain coverd. How to erase this area? Thks.
return (
<>
<BaseEdge path={edgePath} markerEnd={markerEnd} style={{stroke:color}} />
<EdgeLabelRenderer>
<div
onClick={handleClick}
style={{
position: 'absolute',
transform: `translate(-50%, -50%) translate(${labelX}px,${labelY}px)`,
fontSize: 12,
// everything inside EdgeLabelRenderer has no pointer events by default
// if you have an interactive element, set pointer-events: all
background: '#ffcc00',
paddingLeft: 10,
paddingRight:10,
paddingTop:4,
paddingBottom:4,
borderRadius: 5,
fontWeight: 700,
pointerEvents: 'all',
}}
className="nopan edgeObject"
>
{label}
</div>
<Popup id={id} open={open} anchor={anchorEl}>
<Draggable handle='.handleEdge'>
<Paper><ForwardPanel handleClose={handleClose} pair={t} {...props} /></Paper>
</Draggable>
</Popup>
</EdgeLabelRenderer>
</>
);
<Paper className='handleEdge' sx={{backgroundColor:pink[50], cursor:'pointer'}} >
<Stack direction="row" spacing={0.6} display='flex' alignItems='center' padding='4px' borderBottom='1px solid #E8A7D5'>
<Box whiteSpace='nowrap' overflow='hidden' textOverflow='ellipsis' maxWidth='8em'>{source}</Box>
<ArrowForwardIcon sx={{color:grey[400], fontSize:"1em"}}/>
<Box whiteSpace='nowrap' overflow='hidden' textOverflow='ellipsis' maxWidth='8em'>{target}</Box>
<IconButton onClick={props.handleClose} sx={{marginLeft:'auto !important', padding:"0", fontSize:'1em'}}><CloseIcon color='primary' /> </IconButton >
</Stack>
</Paper>
- Lingua principale
- JavaScript
- Stelle
- 9.3k
- Fork
- 1k
- Merge medio
- 3g 8h
- PR unite (30g)
- 4
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di react-grid-layout/react-draggable
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
react-grid-layout/react-draggable#784 · 4 commenti · 2 reazioni ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
react-grid-layout/react-draggable#782 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
react-grid-layout/react-draggable#781 · 1 commento · 2 reazioni ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
react-grid-layout/react-draggable#780 · 8 commenti ·
Tutte le issue di react-grid-layout/react-draggable
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Daemon passes --experimental-wasm-jspi unconditionally on Node >= 24; Node 26 rejects the flag Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Automattic/studio#4908 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
sugarlabs/musicblocks#8847 ·