Skip to content

Commit

Permalink
Merge pull request #476 from code4romania/321-orasuat-domiciliu-efect…
Browse files Browse the repository at this point in the history
…iv-input-does-not-reset-when-judet-domiciliu-legal-is-changed
  • Loading branch information
gheorghelupu17 authored Jan 4, 2025
2 parents acb5554 + b1ca8ff commit a70a547
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Forms/Components/Location.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ public function getChildComponents(): array
$set($this->getCityField(), null);
if ($this->getCopyPath()) {
$set(\sprintf('../%s.county_id', $this->getCopyPath()), $state);
$set(\sprintf('../%s.city_id', $this->getCopyPath()), null);
}
})
->when(! $this->hasCity(), fn (Select $component) => $component->columnSpanFull()),
Expand Down

0 comments on commit a70a547

Please sign in to comment.