diff --git a/src/Components/Columns/Editable.php b/src/Components/Columns/Editable.php index 74ee6302..728b7379 100644 --- a/src/Components/Columns/Editable.php +++ b/src/Components/Columns/Editable.php @@ -193,6 +193,10 @@ public function getCellPrototype($row = NULL) $td = parent::getCellPrototype($row); if ($this->isEditable() && $row !== NULL) { + if (!in_array('editable', $td->class)) { + $td->class[] = 'editable'; + } + $td->data['grido-editable-value'] = $this->editableValueCallback === NULL ? parent::getValue($row) : callback($this->editableValueCallback)->invokeArgs(array($row, $this)); diff --git a/tests/Components/Column.Editable.phpt b/tests/Components/Column.Editable.phpt index e91540ec..66151101 100644 --- a/tests/Components/Column.Editable.phpt +++ b/tests/Components/Column.Editable.phpt @@ -126,7 +126,7 @@ class EditableTest extends \Tester\TestCase return $item['name'] . '-TEST'; }); - Assert::same('