File upload remove image doesn't update Image component

FileUpload::make('background_image')
->image()
->imageEditor()
->live(),
Image::make(
url: fn (Get $get) => static::getQrImage($get),
alt: 'QR code to scan',
)
->imageSize(fn (Get $get) => $get('size') ?? 500)
->alignCenter(),
FileUpload::make('background_image')
->image()
->imageEditor()
->live(),
Image::make(
url: fn (Get $get) => static::getQrImage($get),
alt: 'QR code to scan',
)
->imageSize(fn (Get $get) => $get('size') ?? 500)
->alignCenter(),
since Image component doesn't have name.. it is very hard to update the url.. when we remove the image on background_image, static::getQrImage($get) doesn't trigger..
1 Reply
Eskie
EskieOP4w ago
I tried adding a Hidden field and update it using Set but still it didn't trigger

Did you find this page helpful?