Comments (4)
I was debbuging it for last 4 hours. Finally I have found the problem.
Problem is not with the VueFlow, but it was happening from 1.33.5+.
Solution was kinda stupid, but it was caused by wrapping node and passing in into its child slot.
After removing one <div>
it works fine. The fun part is that we didn't changed a thing, except the library version, so I was expecting a bug in vueFlow.
I'm also adding a code:
This is EndNode template
<template>
<node-dialog-wrapper v-bind="props">
<tooltip-wrapper
:error="getErrors()"
:text="getErrors()"
>
<v-card
color="background"
elevation="3"
>
<v-card-text>
<v-icon
class="icon ma-1"
color="primary"
size="35"
>
mdi-circle
</v-icon>
{{ label }}
</v-card-text>
</v-card>
<handle
:position="Position.Top"
type="target"
/>
</tooltip-wrapper>
</node-dialog-wrapper>
</template>
and this is TooltipWrapper:
<template>
<div v-if="text?.length > 0">
<slot />
<v-tooltip
activator="parent"
:class="{'error': error}"
:close-delay
:location
:open-delay
>
<template v-if="Array.isArray(text)">
<div
v-for="(value, index) in text"
:key="index"
>
{{ $t(value) }}
</div>
</template>
<span v-else>{{ $t(text) }}</span>
</v-tooltip>
</div>
<div v-else>
<slot />
</div>
</template>
Bug is caused by <div v-if="text?.length > 0">
in Tooltip wrapper.
After removing everything except <slot>
its working fine.
I'm sorry that I was wasting yourr time, but you have to admit it is weird.
Thank you for your time.
from vue-flow.
Can you provide a proper reproduction for this issue?
from vue-flow.
Tbh I can't reproduce any bugs here.
Maybe it's a misconception with markerEnd and markerStart and where the start and end is.
If you're not defining all <Handle>
as type="source"
and using ConnectionMode.Loose
the handles will be used according to their type (source + target), where the source handle will always be the start and the target handle always be the end, so the markerEnd would always point to the target handle and not the source.
Other than that (which isn't a bug but intended) I can't see any "problems".
from vue-flow.
Interesting, I'll still give it a look, maybe there is something there 😄
from vue-flow.
Related Issues (20)
- 🐛 [BUG]: Devtool throws warning when using node resizer HOT 2
- 🐛 [BUG]: `pathOptions` for default edges aren't applied HOT 1
- 🐛 [BUG]: flickering on some phone browsers HOT 4
- 🐛 [BUG]: Wrong edge position with dynamic handle id HOT 5
- 🐛 [BUG]: When typing, CMD + Backspace or Shift + Backspace can delete selected element HOT 1
- 🐛 [BUG]: Docs (vueflow.dev) hangs and never loads on iOS Safari HOT 2
- 🐛 [BUG]: Auto-generated Handle ids change with position HOT 1
- 🐛 [BUG]: <title> manual control <Handle /> graph line confusion HOT 1
- 🐛 [BUG]: manual control <Handle /> graph line confusion HOT 2
- 🐛 [BUG]: `autoPanOnConnect` does not disable panning during connections HOT 1
- Feature Request: Support for Multiple Handles on Nodes HOT 5
- 🐛 [BUG]: Wrong useVueFlow context within pinia HOT 2
- 🐛 [BUG]: PanelPositionType not exported HOT 1
- 🐛 [BUG]: `useHandleConnections` does not call `onConnect` and `onDisconnect` HOT 4
- onConnect method in useHandleConnections still not work after update to version 1.34.1 HOT 2
- 🐛 [BUG]: Hiding/Unhiding Nodes/Edges can be expensive and block the main thread HOT 1
- onDisconnect method in useHandleConnections does not work in useHandleConnections if handle id is specified. HOT 8
- 🐛 [BUG]: node change events not triggered when removing nodes HOT 5
- 🐛 [BUG]: onConnect sourceHandle/targetHandle is null 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 vue-flow.