nova-multiselect-filter icon indicating copy to clipboard operation
nova-multiselect-filter copied to clipboard

Reset Filters action doesn't clear the selections with Nova 3.2.1

Open andrealandonio opened this issue 6 years ago • 6 comments

Hi, same problem seen in a previous issue... my Nova version is 3.2.1 with Laravel 7. I'm using the same code snippet explained in the Readme but resetting filters don't clean the selections.. like in https://github.com/rcknr/nova-multiselect-filter/issues/10

Any suggestions?

andrealandonio avatar Apr 19 '20 08:04 andrealandonio

@andrealandonio Is any error shown in the console?

skauk avatar Apr 19 '20 08:04 skauk

No errors unfortunately...

andrealandonio avatar Apr 19 '20 09:04 andrealandonio

The strange thing is that when I enter the page the first time (also after a filters reset) I see the filters icon enabled but no items are selected.

Screenshot from 2020-04-19 16-20-42

Screenshot from 2020-04-19 16-20-57

And, in the URL there is a parameter "<Resource>_filter" with an hash value.. like: http://127.0.0.1:8000/admin/resources/credits?credits_page=1&credits_filter=W3siY2xhc3MiOiJBcHBcXE5vdmFcXEZpbHRlcnNcXENyZWRpdFR5cGUiLCJ2YWx1ZSI6W119XQ%3D%3D

Have you even seen a similar issue?

andrealandonio avatar Apr 19 '20 14:04 andrealandonio

Yes. Happens sometimes when debugging filters. Remove all URL parameters to reset.

Andrea Landonio [email protected] schrieb am So., 19. Apr. 2020, 16:24:

The strange thing is that when I enter the page the first time (also after a filters reset) I see the filters icon enabled but no items are selected.

[image: Screenshot from 2020-04-19 16-20-42] https://user-images.githubusercontent.com/9296058/79690305-04f42c80-825a-11ea-812f-ed15b8ac9895.png

[image: Screenshot from 2020-04-19 16-20-57] https://user-images.githubusercontent.com/9296058/79690308-0a517700-825a-11ea-808e-2df9aced3cd9.png

And, in the URL there is a parameter "_filter" with an hash value.. like:

http://127.0.0.1:8000/admin/resources/credits?credits_page=1&credits_filter=W3siY2xhc3MiOiJBcHBcXE5vdmFcXEZpbHRlcnNcXENyZWRpdFR5cGUiLCJ2YWx1ZSI6W119XQ%3D%3D

Have you even seen a similar issue?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rcknr/nova-multiselect-filter/issues/19#issuecomment-616146902, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADTAGYWSZECY3A5NFZYF73RNMCTFANCNFSM4MLWLM6A .

skauk avatar Apr 19 '20 15:04 skauk

Hi @rcknr .... what do you mean with remove all URL parameters to reset? removing parameters is a good way for resetting filers but the very strange behavior is that if I reload the page the parameters come back... :-(

andrealandonio avatar Apr 20 '20 18:04 andrealandonio

This is still happening. Removing the URL parameters does not correct the issue as stated above.

Is this project still maintained?

bastinald avatar Aug 11 '21 23:08 bastinald