-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Open
Labels
Milestone
Description
Package
filament/filament
Package Version
v4.0.18
Laravel Version
v12.30.1
Livewire Version
v3.6.4
PHP Version
PHP 8.3.13
Problem description
There is an intermittent issue with the following error displaying, at least in FireFox. Sometimes it happens sometimes it doesn't. It seems to happen less often in the reproduction repo that I made for this issue report.

I think this might be some kind of race condition. You may have to refresh with the console open a couple times for it to display.
Expected behavior
It just, shouldn't error out. It would work "as expected".
Steps to reproduce
I'm attaching the simplest possible way to replicate this. Also attaching a link to a repo.
Filament Page class
<?php
namespace App\Filament\Pages;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput;
use Filament\Pages\Page;
use Filament\Schemas\Schema;
use Filament\Support\RawJs;
class Test extends Page
{
protected static string $routePath = '/test';
protected string $view = 'filament.pages.test';
public ?array $data = [];
public function mount(): void
{
$this->form->fill([
'price' => '1234.56',
]);
}
public function form(Schema $schema): Schema
{
return $schema
->components([
TextInput::make('price')
->mask(RawJs::make('$money($input)'))
->live(),
Textarea::make('description'),
])
->statePath('data');
}
}
Filament Page View
<x-filament-panels::page>
<form wire:submit="create">
{{ $this->form }}
</form>
<x-filament-actions::modals />
</x-filament-panels::page>
Reproduction repository (issue will be closed if this is not valid)
https://github.com/GlitterCakes/filament-bug-report
Relevant log output
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Todo