Commit 5206abb
committed
Prevent selection restore on unrelated updates
Add a guard in NotesPane to only act on filteredNotes.length changes when there's a pending selection or when shouldRestoreSelectedRowFocus is set. This prevents infinite-scroll or other data loads from causing the view to jump back to a selected note during normal paging/load operations.1 parent 8157be8 commit 5206abb
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
325 | 336 | | |
326 | 337 | | |
327 | 338 | | |
| |||
0 commit comments