Commit ca93d78
fix: ignore sortersChanged for non-existent columns (#9734)
Following up on the AI reproduction, `Grid.sortersChanged` no longer
throws when a sorter references a column that was removed on the server
between the client emitting the event and the server handling it. The
stale sorter is now skipped and any remaining valid sorters are still
applied.
Fixes #1201
---
🤖 Generated with [Claude Code](https://claude.ai/code)
---------
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Sergey Vinogradov <5039436+vursen@users.noreply.github.com>1 parent bf59b13 commit ca93d78
2 files changed
Lines changed: 30 additions & 2 deletions
File tree
- vaadin-grid-flow-parent/vaadin-grid-flow/src
- main/java/com/vaadin/flow/component/grid
- test/java/com/vaadin/flow/component/grid
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4028 | 4028 | | |
4029 | 4029 | | |
4030 | 4030 | | |
4031 | | - | |
4032 | | - | |
| 4031 | + | |
| 4032 | + | |
| 4033 | + | |
| 4034 | + | |
4033 | 4035 | | |
4034 | 4036 | | |
4035 | 4037 | | |
| |||
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
250 | 276 | | |
251 | 277 | | |
252 | 278 | | |
| |||
0 commit comments