-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Bug: can't drag card to column #708
Comments
Thanks @kamre. I am not able to repro this (on v0.8.0 macOS App and plugin). Could you try this on the latest release and attach a video? Also, looks like #583 is a PR for the CreatedBy prop, was that what you intended to link to? |
@chenilim here is the video from the latest release: Same behaviour can be seen for Regarding #583: if we download windows application for revision 16708e9 before this PR was merged from here the issue is not reproduced. |
@chenilim @harshilsharma63 Regression happened during the transition from class to function component for In the class component there was an instance method There are no dependencies for this Propose to fix this by adding dependecies to const KanbanColumn = React.memo((props: Props) => {
const [{isOver}, drop] = useDrop(() => ({
accept: 'card',
collect: (monitor) => ({
isOver: monitor.isOver(),
}),
drop: (item: Card, monitor) => {
if (monitor.isOver({shallow: true})) {
props.onDrop(item)
}
},
}), [props.onDrop]) // <== added
...
} |
Thank you for the additional details @kamre! Could you help investigate @harshilsharma63? Thanks. |
@kamre would you be able to try this out on the latest |
@harshilsharma63 still reproducible on |
@kamre I was able to reproduce this and fix from your suggestion 🤘 |
Summary:
Some cards can't be dragged to column in kanban view
Steps to reproduce the behavior:
Expected behavior:
Card should be in column "SPRINT 2" after dragging
Platform:
Additional context:
Looks like a regression in #583
@harshilsharma63 FYI
The text was updated successfully, but these errors were encountered: