carbon-addons-iot-react
carbon-addons-iot-react copied to clipboard
[StatefulTable] Sorting 'None' with searching does not work as expected
What package is this for?
- [x] React
- [ ] Angular
Describe the bug
Input a search keyword to search table data first then sort one column, the result data is not filtered out by search keyword
To Reproduce
Steps to reproduce the behavior:
- Input keyword to search, for example "test"
- Click column header "Name" to sort column
- Set sort column type as "None" (with both up arrow and down arrow in table header)
- The result data includes data rows without "test"
Expected behavior
The result data should only contain the rows including "test" since the search keyword is not cleaned yet
Environment/versions:
- OS: all
- Browser: all
-
carbon-addons-iot-react
version: latest 'next' version
@davidicus FYI. I have not noticed this issue in Graphite. The search behaves differently depending on how you hook it up, I assume.
@ilovepumpkin I couldn't reproduce the issue. Would you please attach all the columns from the table? Any text from other column might contain the search term? Thanks!
@ilovepumpkin Please provide more information Jessie asked for above or we won't be able to progress with this issue.
@JordanWSmith15 @jessieyan
This can be easy to reproduce on https://carbon-addons-iot-react.com/?path=/story/1-watson-iot-table--playground, and recorded a video for you.
https://user-images.githubusercontent.com/11310645/197453564-c4c73401-8653-402d-9291-bb66a40e3465.mp4