瀏覽代碼

修复编辑页面按回车键时触发删除按钮事件bug

jqh 5 年之前
父節點
當前提交
2f87e5311d
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Form/Tools.php

+ 2 - 2
src/Form/Tools.php

@@ -216,9 +216,9 @@ HTML;
 
         return <<<HTML
 <div class="btn-group pull-right" style="margin-right: 5px">
-    <button class="btn btn-sm btn-danger " data-action="delete" data-url="{$this->getDeletePath()}" data-redirect="{$this->getListPath()}">
+    <a class="btn btn-sm btn-danger text-white" data-action="delete" data-url="{$this->getDeletePath()}" data-redirect="{$this->getListPath()}">
         <i class="feather icon-trash"></i><span class="d-none d-sm-inline"> {$delete}</span>
-    </button>
+    </a>
 </div>
 HTML;
     }