filament-autograph
filament-autograph copied to clipboard
[Bug]: The field is not refreshing after updating data in livewire form
What happened?
I'm trying to load an image from the database and update $this->data, but nothing is happening.
How to reproduce the bug
The field is mounted with some image with $this->form->fill() Then a button trigger a method to load different values in the fields, updating $this->data. It works fine for all the fields (Toggle) except SignaturePad.
Package Version
3.0.2
PHP Version
8.2
Laravel Version
10.43.0
Which operating systems does with happen with?
macOS
Notes
public function selectExistingSignature($autographId)
{
$autograph = Autograph::find($autographId);
if ($autograph) {
$this->data['autograph'] = $autograph->image;
}
}