filament icon indicating copy to clipboard operation
filament copied to clipboard

Two clicks are required to Save the form on Simple resource with live and placeholder fields

Open skills-up opened this issue 8 months ago • 8 comments

Package

filament/filament

Package Version

v3.2.82

Laravel Version

v11.8.0

Livewire Version

v3.5.0

PHP Version

PHP 8.2.18

Problem description

When I'm using a simple resource with a few live fields and a Placeholder field, I need to click on Save button twice to save the changes and close the pop-up.

Expected behavior

Single click on Save button should suffice for saving the record and closing the modal.

Steps to reproduce

Create a resource with a few live fields and a Placeholder field whose value is changed on update on any of these live fields. Both live and placeholder fields must be present on the form as there is no issue if either of these are absent. Now change the value of a live field (which will trigger the update of placeholder field). Now edit a record of this resource. Click on Save button (nothing happens). Click on Save button again to save the record and close the modal.

Alternatively, in the linked repository, updated an Order Item.

Reproduction repository

https://github.com/skills-up/demo

Relevant log output

No response

Donate 💰 to fund this issue

  • You can donate funding to this issue. We receive the money once the issue is completed & confirmed by you.
  • 100% of the funding will be distributed between the Filament core team to run all aspects of the project.
  • Thank you in advance for helping us make maintenance sustainable!
Fund with Polar

skills-up avatar Jun 05 '24 12:06 skills-up