filament-autograph icon indicating copy to clipboard operation
filament-autograph copied to clipboard

[Bug]: The field is not refreshing after updating data in livewire form

Open CharlieEtienne opened this issue 4 months ago • 0 comments

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;
        }
    }

CharlieEtienne avatar Feb 12 '24 21:02 CharlieEtienne