Commit 87b2c33
authored
… grid filters (#2639)
- When Ctrl+E clears all filters, the grid's `clearAllFilters()` removes
quick filters and stops loading. However, the input filter's debounced
clear arrives later, triggering `startLoading('Filtering...')` in
`componentDidUpdate`. Since the filters were already cleared,
`applyInputFilters()` finds no changes, never calls `setState`, and the
model update/stopLoading never fires - leaving the grid stuck.
- Fix: make `applyInputFilters()` return whether filters actually
changed. If no change occurred, immediately call `stopLoading()` to
cancel the loading state that was optimistically started.
- Add e2e test for Ctrl+E clear filters with input filter stuck in
Filtering state
- Manually tested in Core to verify fix
- Cherry-picked from the fix for DH-22062 on main
1 parent 4e2a7d0 commit 87b2c33
2 files changed
Lines changed: 61 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
940 | 940 | | |
941 | 941 | | |
942 | 942 | | |
943 | | - | |
944 | | - | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
945 | 950 | | |
946 | 951 | | |
947 | 952 | | |
| |||
1617 | 1622 | | |
1618 | 1623 | | |
1619 | 1624 | | |
| 1625 | + | |
1620 | 1626 | | |
1621 | 1627 | | |
1622 | 1628 | | |
1623 | 1629 | | |
1624 | | - | |
| 1630 | + | |
1625 | 1631 | | |
1626 | 1632 | | |
1627 | 1633 | | |
| |||
1650 | 1656 | | |
1651 | 1657 | | |
1652 | 1658 | | |
| 1659 | + | |
1653 | 1660 | | |
1654 | 1661 | | |
1655 | 1662 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
0 commit comments