#Modal with custom view sortable javascript?

4 messages · Page 1 of 1 (latest)

sick edge
#

I have a page with a custom modal configured like so

            $action = Action::make('order_item_process_steps')
            ->label('Process steps')
            ->modalContent(fn(OrderItem $item): View => view(
                'tables.order-item-process-steps',
                [
                    'orderItemProcessSteps' => $item->orderItemProcessSteps,
                    'isReleased' => $releaseService->isReleased($item->order),
                    'rootStep' => $item->root_step_no,
                ],
            ))
            ->modalSubmitAction(false);

we used to have our pages as plain livewire, and we were using sortablejs , however the javascript in the view does not seem to work, I can't even seem to get a console log! Can anyone help?

hexed flowerBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

fallen sandal
sick edge
#

hi again @toeknee thanks so much for your help once again 😄