Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/3.x' into 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-to committed Dec 10, 2024
2 parents 2195c0d + cc525f2 commit f1211ad
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/UI/src/Traits/Fields/UpdateOnPreview.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ trait UpdateOnPreview
public function readonly(Closure|bool|null $condition = null): static
{
$this->updateOnPreview(condition: false);
$this->updateOnPreviewPopover = false;

return parent::readonly($condition);
}

public function withUpdateRow(
string $component,
): static {
public function withUpdateRow(string $component): static
{

if ($this->isRawMode()) {
return $this;
}
Expand All @@ -57,9 +58,8 @@ public function withUpdateRow(
);
}

public function updateInPopover(
string $component
): static {
public function updateInPopover(string $component): static
{
$this->updateOnPreviewPopover = true;

return $this->withUpdateRow($component);
Expand Down

0 comments on commit f1211ad

Please sign in to comment.