Commit ba3b764
committed
fix(gallery): register JS action event listeners for Reset Filters and Clear Selection
Gallery widget has all infrastructure for external JS actions support
but never registered event listeners, causing "Reset All Filters" and
"Clear Selection" actions to fire into the void.
This change:
- Creates useGalleryJSActions() helper to register event listeners
- Integrates hook into GalleryWidget component
- Mirrors datagrid's working implementation pattern
Infrastructure already existed:
- @mendix/widget-plugin-external-events dependency
- Config with name and filtersChannelName
- SelectActionsProvider with clearSelection() method
- Filter system with CombinedFilter
The fix is minimal - just wires up the listeners.
Jira: WC-34621 parent 93b4fb9 commit ba3b764
3 files changed
Lines changed: 19 additions & 0 deletions
File tree
- packages/pluggableWidgets/gallery-web
- src
- components
- helpers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments