piccolo-orm / piccolo_admin

A powerful web admin for your database.
https://piccolo-orm.com/ecosystem/
MIT License
299 stars 35 forks source link

Fix filtering of array columns when they have choices #367

Closed dantownsend closed 4 months ago

dantownsend commented 4 months ago

There's some weird behaviour when trying to filter using array columns which have choices defined.

https://github.com/piccolo-orm/piccolo_admin/assets/350976/59e0aaae-103e-4eca-95fa-a5061f8988e0

When you click on a choice, it immediately de-selects.

sinisaos commented 4 months ago

@dantownsend If I completely remove the isFilter argument from ChoiceSelect in ArrayWidget.vue, everything works normally in the filter and crud forms. Can you check that?

dantownsend commented 4 months ago

@sinisaos You're right - that seems to fix it. Good catch!