Skip to content

Commit

Permalink
add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vursen committed Oct 11, 2024
1 parent 11f2309 commit 04dc622
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4568,7 +4568,13 @@ public Registration addDragEndListener(
public void setDropMode(GridDropMode dropMode) {
getElement().setProperty("dropMode",
dropMode == null ? null : dropMode.getClientName());
if (dragFilter != defaultDragFilter || dropFilter != defaultDropFilter) {

// Workaround to prevent scroll position reset when setting dropMode
// dynamically on drag start in tree grids. This can be removed when
// Flow will provide a way to request refresh for only items that
// are in the viewport.
if (dragFilter != defaultDragFilter
|| dropFilter != defaultDropFilter) {
getDataCommunicator().reset();
}
}
Expand Down

0 comments on commit 04dc622

Please sign in to comment.