mattermost-community/focalboard
Vedi su GitHubPerf: Drag and drop cards in Kanban board view shows intermediate sort state
Open
#2315 aperta il 11 feb 2022
BugHelp WantedPerformanceSev/3Up for grabs
Metriche repository
- Star
- (26.187 star)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
Steps to reproduce the behavior
- Open a board (Kanban) view
- Drag a card onto another card in a column with multiple (5+) cards
- The card first appears at the beginning or end, then moves to the right position a split second later
Expected behavior
The card should move directly to the dropped position
Screenshots
Edition and Platform
- Edition: Mattermost plugin
- Version: v0.14
- Browser and OS: Chrome on Mac
Additional context
In the browser network tab, notice that PATCH Block is called twice. This is because on onDropToCard in kanban.tsx, the property change and sort order are two separate API calls. Propose refactoring to call UpdateBlocks in a single call.