-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent opening card and applyLabelFilter on card drag end #3916
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works 👍
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
035252f
to
9d3f09f
Compare
PHP tests skipped as no change affected PHP -> Merging |
@eneiluj Just a quick hint, using |
/backport to stable24 |
/backport to stable23 |
/backport to stable22 |
Yeah i always think "what if we don't want to close the issue now" but you're right, most of the time the PR closes the issue 😁. |
refs #2594
Problem: A click event is triggered on the element we drag (when dragging a card) when it's dropped.
This issue was mentioned in vue-smooth-dnd: kutlugsahin/vue-smooth-dnd#50 but no solution/fix was provided.
I can't find another way to solve this.
Suggested solution: Thanks to drag-start and drag-end events, we know if we are currently dragging a card or not. We pass this information to the cards. The
applyLabelFilter
andopenCard
methods of the CardItem component don't do anything when the card is being dragged.