Browse Source

Merge pull request #1200 from wxfjamdc/2.0

Button on return $this
Jiang Qinghua 4 years ago
parent
commit
e1cb3c9b0e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Form/Field/Button.php

+ 1 - 0
src/Form/Field/Button.php

@@ -28,5 +28,6 @@ $('{$this->getElementClassSelector()}').on('$event', function() {
     $callback
 });
 JS;
+        return $this;
     }
 }