Skip to content

Commit

Permalink
Omit change event for initial setting of selected value, fixes #2020
Browse files Browse the repository at this point in the history
  • Loading branch information
dtemaster committed Aug 16, 2023
1 parent dc9aa27 commit 4255c21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form/Control/Lookup.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ protected function renderView(): void
$this->model = $this->model->loadBy($idField, $this->entityField->get());

$row = $this->renderRow($this->model);
$chain->dropdown('set value', $row['value'])->dropdown('set text', $row['title']);
$chain->dropdown('set value', $row['value'], true)->dropdown('set text', $row['title'], true);
}

$this->js(true, $chain);
Expand Down

0 comments on commit 4255c21

Please sign in to comment.