jqh 4 лет назад
Родитель
Сommit
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')));