Comments (5)
It is possible to connect a target handle to a source handle the same way you can connect a source handle to a target handle. Why shouldn't it be?
from react-flow.
It is possible to connect a target handle to a source handle the same way you can connect a source handle to a target handle. Why shouldn't it be?
Thanks for your response, I want the whole node to be connectable and act as target handle, but in this situation the node is not draggable anymore and edge comes out of it. The target handle should not be like this. In other words how can I make target handle with no outgoing edge?
from react-flow.
We have two handle props that are not implemented yet in SvelteFlow that would achieve something like this.
In the meantime, I feel like there is a better solution to what you want to achieve. You can subscribe to the connection that is currently in progress through the store and apply pointer-event: none;
to the target handles if there is currently no connection happening.
from react-flow.
pointer-event: none; does not solve the issue and still edge comes out of target handle.
from react-flow.
Take a look at our easy-connect example. You can also conditionally render the handles.
pointer-events: none
works for me flawlessly.
<Handle style="pointer-events: none;" {...} />
from react-flow.
Related Issues (20)
- Error if parent node is after child node in the list of nodes HOT 2
- [V12] Missing types export: XYResizerParams and ResizeDragEvent HOT 2
- Selected nodes do not move when dragged after selecting with `Shift+Click` or programaticaly. HOT 1
- load remote custom node HOT 2
- getNodesBounds returns wrong values for nodes in subflow HOT 1
- Reactflow: Problem when use mui Menu as node context menu HOT 2
- TypeScript Error - Node.internals doesn't exist in the type export HOT 1
- setNodes from useReactFlow crashes as parent node cannot be found HOT 1
- Support non CSS-transform based rendering to allow the use of anchor positioning
- Error when clicking edge source end with onReconnect HOT 2
- NodeResizer lineStyle boderStyle invalid HOT 5
- Documentation website UX issue HOT 3
- `useStore` hook doesn't respect `ReactFlowState` generic HOT 2
- How can i prevent or stop the mouse event when i render the three.js model in reactflow HOT 9
- Floating Edges Example have some issue HOT 1
- useUpdateNodeInternals doesnot update node dimensions on dynamic increase of handles HOT 4
- Setting nodeExtent prevents group panning. HOT 2
- orientation prop missing on Control component HOT 2
- Node thumbnails are not displayed in MiniMap HOT 1
- Can't test ReactFlow in vitest HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-flow.