소스 검색

修复编辑页面按回车键时触发删除按钮事件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;
     }