Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ViktoriaLashkouskaya opened this issue Apr 22, 2024 · 1 comment
Labels
improvement improve some features

Comments

@ViktoriaLashkouskaya
Copy link

Reproduction link

Edit on StackBlitz

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
Copy link

stackblitz bot commented Apr 22, 2024

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@MadCcc MadCcc added improvement improve some features and removed unconfirmed labels Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement improve some features
Projects
None yet
Development

No branches or pull requests

2 participants