Reproduction link
Steps to reproduce
- Open the filter and select any option in the filter, but do not click OK.
- Click anywhere behind the filter
- Again open the filter, and see that the value wouldn't clear
- Click the OK button to apply the filter
- Remove the filter value and apply a filter without any selected options
- Open the filter and select any option in the filter, but do not click OK.
- Click anywhere behind the filter
- 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 |
1条答案
按热度按时间n8ghc7c11#
Start a new pull request in StackBlitz Codeflow .