Explorar o código

Merge pull request #517 from xiaoxinzhu/master

修复 Grid Column Editable 行内编辑字段值为空时不出现保存按钮
Jiang Qinghua %!s(int64=4) %!d(string=hai) anos
pai
achega
6cf1002d11
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Grid/Displayers/Editable.php

+ 1 - 1
src/Grid/Displayers/Editable.php

@@ -57,7 +57,7 @@ CSS
     protected function addScript()
     {
         $script = <<<JS
-$(".{$this->selector}").on("click", function() {
+$(".{$this->selector}").on("click focus", function() {
     $(this).next().removeClass("hidden");
 }).on('blur', function () {
     var icon = $(this).next();