When i click on add user button at that time it will open an empty form but when i click on edit user and after that without close i discard form and then after i open add user form it will open a form with last opened data and when i create it will update that last opened user not create new user.
Please check video for the reference:
Link
Hi Nipesh,
Sorry for the delay. We appreciate your patience. We have identified the issue and will be fixing it in the upcoming release.
As a temporary workaround, you can add the following code:
1. Open the file `/resources/views/pages/metronic/apps/user-management/users/list.blade.php`
<script>
//...
$("#kt_modal_add_user").on("hidden.bs.modal", function () {
Livewire.dispatch("new_user");
});
</script>
protected $listeners = [
//...
"new_user" => "hydrate",
];
public function hydrate()
{
//...
// add reset function
$this->reset();
}