diff --git a/src/ListJsonTable.php b/src/ListJsonTable.php index 14f1381..7555b31 100644 --- a/src/ListJsonTable.php +++ b/src/ListJsonTable.php @@ -73,8 +73,8 @@ class ListJsonTable extends JasonTable } if ($this->showFiltersRow) { $this->getFilters($columnKeys); - $this->html .= ""; } + $this->html .= ""; } public function createTbody(): void @@ -271,8 +271,10 @@ class ListJsonTable extends JasonTable private function getFilters(array $columnKeys): void { $this->html .= "
"; + $flag = false; foreach ($columnKeys as $key) { if ($this->issetFilter($key)) { + $flag = true; $filter = $this->getCurrentFilter($key); $params = [ 'param' => $filter['param'] ?? '', @@ -290,7 +292,8 @@ class ListJsonTable extends JasonTable $this->html .= ""; } } - if ($this->showActionColumn) { + if ($flag) { + $this->showActionColumn = true; $this->html .= ""; } $this->html .= "
";