Explorar el Código

修复 Grid Column Editable 行内编辑字段值为空时不出现保存按钮

HE hace 4 años
padre
commit
43ea62e951
Se han modificado 1 ficheros con 1 adiciones y 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();