jqh 4 年之前
父节点
当前提交
89827e8ec3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Widgets/Form.php

+ 1 - 1
src/Widgets/Form.php

@@ -834,7 +834,7 @@ HTML;
 
     protected function prepareHandler()
     {
-        if (method_exists($this, 'handle')) {
+        if ($this->allowAjaxSubmit() && method_exists($this, 'handle')) {
             $addHiddenFields = function () {
                 $this->method('POST');
                 $this->action(route(admin_api_route_name('form')));