ant-design The filter in a table does not clear its state when closed when use filterOnClose - false

tkclm6bt  于 4个月前  发布在  其他
关注(0)|答案(1)|浏览(50)

Steps to reproduce

  1. Open the filter and select any option in the filter, but do not click OK.
  2. Click anywhere behind the filter
  3. Again open the filter, and see that the value wouldn't clear
  4. Click the OK button to apply the filter
  5. Remove the filter value and apply a filter without any selected options
  6. Open the filter and select any option in the filter, but do not click OK.
  7. Click anywhere behind the filter
  8. Again open the filter, and see that the value is now clear

What is expected?

That not applied changes after closing filter will be clean

What is actually happening?

Filter clean the state only after first approve of filters
| Environment | Info |
| ------------ | ------------ |
| antd | 5.16.4 |
| React | 18.1.0 |
| System | macOS |
| Browser | any |

相关问题