MudBlazor/MudBlazor

MudDropZone view not updating when items changed

開放

#4,642 建立於 2022年5月20日

 (6 則留言) (1 個反應) (0 位負責人)C# (1,631 個分叉)batch import
bughas workaroundhelp wanted

倉庫指標

星標
 (10,394 顆星)
PR 合併指標
 (平均合併 6天 6小時) (30 天內合併 108 個 PR)

描述

Bug type

Component

Component name

MudDropZone

What happened?

When using MudDropZone to create a kanban like view, the dropzone view doesn't update correctly when items have chanaged. I have a "revert" button which restore a previous state of items in the dropzone, even after calling refresh on the MudDropContainer the view doesn't update. It only updates after starting a new transaction.

Expected behavior

The dropzone view updates given the new items. Items would be in the correct dropzone given their identifier.

Reproduction link

https://try.mudblazor.com/snippet/cEmmkpQuJwAATtFJ

Reproduction steps

  1. Move the "hello" item in "Queue1" dropzone
  2. Click "Revert" (nothing updates)
  3. Click on the "hello" item (Item jump to correct dropzone)

Relevant log output

No response

Version (bug)

6.0.5

Version (working)

No response

What browsers are you seeing the problem on?

Chrome, Microsoft Edge

On what operating system are you experiencing the issue?

Windows

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct

貢獻者指南