From a6a17439976710b2311558d363b5467fa429dcca Mon Sep 17 00:00:00 2001 From: bergice Date: Tue, 16 Oct 2018 18:49:51 +1300 Subject: [PATCH] BUG: Fix `ENTER` not triggering form save button as `GridField`s used `submit` type buttons --- src/Forms/GridField/GridField_FormAction.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Forms/GridField/GridField_FormAction.php b/src/Forms/GridField/GridField_FormAction.php index 627ef8b87..10dc772bc 100644 --- a/src/Forms/GridField/GridField_FormAction.php +++ b/src/Forms/GridField/GridField_FormAction.php @@ -101,6 +101,7 @@ class GridField_FormAction extends FormAction // will strip it from the requests 'name' => 'action_gridFieldAlterAction' . '?' . http_build_query($actionData), 'data-url' => $this->gridField->Link(), + 'type' => "button", ) ); }