carbon-addons-iot-react icon indicating copy to clipboard operation
carbon-addons-iot-react copied to clipboard

[StatefulTable] Sorting 'None' with searching does not work as expected

Open ilovepumpkin opened this issue 2 years ago • 4 comments

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:

  1. Input keyword to search, for example "test"
  2. Click column header "Name" to sort column
  3. Set sort column type as "None" (with both up arrow and down arrow in table header)
  4. The result data includes data rows without "test" image

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

ilovepumpkin avatar Jul 03 '22 08:07 ilovepumpkin

@davidicus FYI. I have not noticed this issue in Graphite. The search behaves differently depending on how you hook it up, I assume.

JordanWSmith15 avatar Jul 07 '22 13:07 JordanWSmith15

@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!

jessieyan avatar Jul 18 '22 19:07 jessieyan

@ilovepumpkin Please provide more information Jessie asked for above or we won't be able to progress with this issue.

JordanWSmith15 avatar Aug 02 '22 17:08 JordanWSmith15

@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

ilovepumpkin avatar Oct 24 '22 05:10 ilovepumpkin