Pass the choice to the Kanban column menus (they called the action without it)

Collection::join() plucks from objects, so joining the Js arguments gave an
empty string and the sort and urgent threshold menus called
setColumnSort() / setUrgentThreshold() with no arguments (500).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-30 11:59:14 +02:00
co-authored by Claude Opus 5.5
parent 9eac4c4d4e
commit 8be732ada8
3 changed files with 20 additions and 1 deletions
@@ -43,7 +43,7 @@
type="button"
role="menuitemradio"
aria-checked="{{ $value === $current ? 'true' : 'false' }}"
wire:click="{{ $method }}({{ collect([...$args, $value])->map(fn ($arg) => Js::from($arg))->join(', ') }})"
wire:click="{{ $method }}({{ collect([...$args, $value])->map(fn ($arg): string => Js::from($arg)->toHtml())->implode(', ') }})"
x-on:click="open = false; $refs.button.focus()"
x-on:keydown.arrow-down.prevent="$el.nextElementSibling?.focus()"
x-on:keydown.arrow-up.prevent="$el.previousElementSibling?.matches('button') && $el.previousElementSibling.focus()"