From 13ca9e07c3662f2e2fc25f0bbadfc1acaf1e07d4 Mon Sep 17 00:00:00 2001 From: Philipp Veller Date: Wed, 15 Jan 2025 09:31:55 +0100 Subject: [PATCH] project-overview/react: add search pills for every item in the search and reset directly on click not on form submit --- changelog/8663.md | 3 ++ .../react/contrib/ControlBarFilterPills.jsx | 4 +-- .../__tests__/ControlBarFilterPills.jest.jsx | 2 +- .../react/projects/ProjectsControlBar.jsx | 32 ++++++++++++------- .../react/projects/ProjectsListMapBox.jsx | 4 +++ 5 files changed, 30 insertions(+), 15 deletions(-) create mode 100644 changelog/8663.md diff --git a/changelog/8663.md b/changelog/8663.md new file mode 100644 index 0000000000..eb0d4b1f4c --- /dev/null +++ b/changelog/8663.md @@ -0,0 +1,3 @@ +### Changed +- Search pills on project overview are now shown for all separate items +- resetting the form now happens on click not on click and then submitting the form diff --git a/meinberlin/react/contrib/ControlBarFilterPills.jsx b/meinberlin/react/contrib/ControlBarFilterPills.jsx index 590e5d34e1..f65be18f5a 100644 --- a/meinberlin/react/contrib/ControlBarFilterPills.jsx +++ b/meinberlin/react/contrib/ControlBarFilterPills.jsx @@ -21,12 +21,12 @@ export const ControlBarFilterPills = ({ filters: _filters, onRemove }) => { const label = filter.label || filter.choices.find(choice => choice[0] === filter.value)[1] return ( {label}