Commit 2e4fd07
committed
[Security Solution][Alerts] Reset selected rows when page index changes (#243729)
> [!warning]
> **I am not sure this is the right way to fix this issue**.
> If you are a reviewer and have a better idea, your suggestion is more
than welcome
## Summary
Addresses #243190
### 🛑 The problem
As highlighted in the aforementioned issue, the selection of rows in the
alerts table would persist when turning page.
This is a screen-recording of the issue:
https://github.com/user-attachments/assets/a3b3444a-9253-41d1-b89b-072907c7043c
### 🔍 Context
- Clearing the selection after changing page is what was happening in
previous versions of kibana
- I have noticed that in discovery we do not do this, but in other parts
of kibana we do
- I couldn't really narrow the commit that caused this to happen, so I
have implemented my own solution
### 💡 The solution
I have added a "dependency" to the effect that resets the selection when
the page size changes — I thought it was the appropriate place to do it.
(cherry picked from commit cc0f9c9)1 parent 56ae764 commit 2e4fd07
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
0 commit comments