Skip to content
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

fix(ui): multiple selection dnd sometimes doesn't get full selection #7317

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

psychedelicious
Copy link
Collaborator

Summary

fix(ui): multiple selection dnd sometimes doesn't get full selection

Related Issues / Discussions

Discord: https://discord.com/channels/1020123559063990373/1149506274971631688/1306665643898175490

QA Instructions

  • Click the first image in a board.
  • Hold shift and click a different image to get a multi-selection going on.
  • Click and drag the first image in the board. You should get a multi-image drag.

Checklist

  • The PR has a short but descriptive title, suitable for a changelog

@github-actions github-actions bot added the frontend PRs that change frontend files label Nov 14, 2024
@psychedelicious psychedelicious enabled auto-merge (rebase) November 15, 2024 00:18
Turns out a gallery image's `imageDTO` object can actually be a different object by reference. I thought this was not possible thanks to how we have a quasi-normalized cache.

Need to check against image name instead of reference equality when deciding whether or not to use the single image or the gallery selection for the dnd payload.
@psychedelicious psychedelicious force-pushed the psyche/fix/ui/dnd-gallery-multiple-dnd branch from 4638168 to da5875c Compare November 15, 2024 00:19
@psychedelicious psychedelicious merged commit 4b39090 into main Nov 15, 2024
14 checks passed
@psychedelicious psychedelicious deleted the psyche/fix/ui/dnd-gallery-multiple-dnd branch November 15, 2024 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend PRs that change frontend files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants