Skip to content

Commit

Permalink
Merge pull request #13973 from bumbummen99/patch-5
Browse files Browse the repository at this point in the history
Fix oldFormState containing new values
  • Loading branch information
danharrin authored Oct 23, 2024
2 parents f1a13c0 + 0527f55 commit 9b4377b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/forms/src/Concerns/InteractsWithForms.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,8 @@ public function updatingInteractsWithForms(string $statePath): void
{
$statePath = (string) str($statePath)->before('.');

$this->oldFormState[$statePath] = data_get($this, $statePath);
// https://github.com/filamentphp/filament/pull/13973
$this->oldFormState[$statePath] ??= data_get($this, $statePath);
}

public function getOldFormState(string $statePath): mixed
Expand Down

0 comments on commit 9b4377b

Please sign in to comment.