F
Filamentβ€’5mo ago
Kaze

Duplicate notification when using table edit modal using filament page

Hi, let me explain my problem. I want to create a custom page where there is a form and a table in one page, while everything is working perfectly there is a problem that i notice, which is whenever i do a table action 'edit' or 'delete' the notifcation after that showed two times. First i though there is a problem with my forms, so i remove every form related code inside my filament pages, but the problem still exist. Already tried everything and it's still the same. My last effort is creating new laravel app and creating the same everything from scratch and the result is the same. πŸ™‚ Here's how to replicate my problem. 1. Create new laravel app 2. Install filament 3. Create new filament pages 4. Copy and paste this code
class UserManager extends Page implements HasForms, HasTable
{
use InteractsWithTable;
use InteractsWithForms;

protected static ?string $navigationIcon = 'heroicon-o-document-text';

protected static string $view = 'filament.pages.user-manager;

public static function table(Table $table): Table
{
return $table
->query(Models::query())
->columns([
TextColumn::make('created_at')
->dateTime('d m Y h:i'),
TextColumn::make('updated_at')
->dateTime('d m Y h:i')
])
->filters([])
->actions([
EditAction::make()
]);
}
}
class UserManager extends Page implements HasForms, HasTable
{
use InteractsWithTable;
use InteractsWithForms;

protected static ?string $navigationIcon = 'heroicon-o-document-text';

protected static string $view = 'filament.pages.user-manager;

public static function table(Table $table): Table
{
return $table
->query(Models::query())
->columns([
TextColumn::make('created_at')
->dateTime('d m Y h:i'),
TextColumn::make('updated_at')
->dateTime('d m Y h:i')
])
->filters([])
->actions([
EditAction::make()
]);
}
}
with this minimal configuration, insert new data manually and try edit and save it, it will show 2 same notification, with the only difference is how the slide effect showed, one from right to left and one from top to bottom. Please help me with this problem, it's maybe not to important but it's still pretty annoying not knowing from where the second notification come from.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?