-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Fix clicking on "Remove all filters" does not close the filter menu #9415
Conversation
packages/ra-ui-materialui/src/input/AutocompleteArrayInput.spec.tsx
Outdated
Show resolved
Hide resolved
@@ -593,122 +593,3 @@ export const InsideReferenceArrayInputWithCreationSupport = () => ( | |||
<Resource name="books" edit={BookEditWithReferenceAndCreationSupport} /> | |||
</Admin> | |||
); | |||
|
|||
const booksDataProvider = fakeRestDataProvider({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this code used for tests on the AutocompleteArrayInput?
Also, linter warnings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This data was only used for the test I made in this commit, but this test is now in FisterButton.spec.tsx
and works with the FisterButton.stories.tsx
Problem
The "Add Filter" button disappears, since there are no filters, but as soon as you enter a new filter, the "Add Filter" menu immediately appears in the corner of the screen.


Solution
Set state to close on "Remove all filters" click
TODOs
Step to reproduce the bug
Issue
Closes #9412