diff --git a/src/Datagrid.php b/src/Datagrid.php index 025395f..4db59ae 100644 --- a/src/Datagrid.php +++ b/src/Datagrid.php @@ -489,9 +489,7 @@ public function processForm(UI\Form $form) } } if ($form['edit']['cancel']->isSubmittedBy() || ($form['edit']['save']->isSubmittedBy() && $form['edit']->isValid())) { - $editRowKey = $form['edit'][$this->rowPrimaryKey]->getValue(); - $this->redrawRow($editRowKey); - $this->getData($editRowKey); + $this->redrawControl('rows'); } if ($this->editRowKey !== null) { $this->redrawRow($this->editRowKey);