Browse Source

修复工具表单使用分列布局报错问题

jqh 4 years ago
parent
commit
270b5aa9e8
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/Form/Layout.php

+ 6 - 0
src/Form/Layout.php

@@ -117,6 +117,12 @@ class Layout
             $html .= $column->render();
         }
 
+        $this->form->fields()->each(function ($field) use (&$html) {
+            if ($field instanceof Form\Field\Hidden) {
+                $html .= $field->render();
+            }
+        });
+
         return $html.'</div>';
     }
 }