hizmarck
Reorderable Works on Modal but doesn't on Edit Page
the code is the same:
$repeater = Repeater::make('folios')
->label(('orderFolios.plural'))
->hint(('orderFolios.helpers.tableDescription'))
->columns(4)
->itemLabel(function (array $state) {
$item_label = collect([$state['folio_order'] ?? null, $state['folio_remission'] ?? null, $state['folio_po'] ?? null])
->filter()
->implode(' - ');
return $item_label ?: __('orderFolios.helpers.untitled');
})
->schema(function (?ShipmentTracking $record, $operation) {
$isNotEditOperation = !(!empty($record) && $operation === 'edit');
return [
self::folioOrderTxt()->live(onBlur: true),
self::documentOrderFile(),
self::folioRemissionTxt($isNotEditOperation)->live(onBlur: true),
self::documentRemissionFile($isNotEditOperation),
self::folioPOTxt()->required(false)->live(onBlur: true),
self::documentPOFile(),
self::folioNotesTxt()->columnSpan($operation === 'edit' ? 2 : 'full'),
];
})
->columnSpan('full')
->collapsed(fn($operation) => $operation !== 'edit')
->collapsible(true)
->orderColumn('sort')
->reorderable(true)
->addAction(fn($action) =>$action->icon('heroicon-o-plus'))
->minItems(1);
if (!$isNew) {
$repeater->relationship('orderFolios');
}
return $repeater;
4 replies
Updating from 3.2.94 to 3.2.135 breaks my menu
yes, that was the problem, those are the initial parts of my theme.css, I started removing things and finally, I found the solution:
resources/css/filamentphp/app/theme.css
@import '/vendor/filament/filament/resources/css/theme.css';
@import '/vendor/awcodes/filament-table-repeater/resources/css/plugin.css';
@config 'tailwind.config.js';
@tailwind base;
@tailwind components;
@tailwind utilities;
... more code...
these 3 ones:
@tailwind base;
@tailwind components;
@tailwind utilities;
tyvm to both, I really appreciate their time.
12 replies
Updating from 3.2.94 to 3.2.135 breaks my menu
I removed my theme,
->viteTheme('resources/css/filament/app/theme.css');
Now that the menu is working, I know that the problem is the theme.
but how it was working in the 3.2.94 version but it doesn't in the new one?
12 replies