Merge pull request #8483 from open-sausages/pulls/4/666-fix-enter-form-submission

BUG: Fix `ENTER` not triggering form save button as `GridField`s used `submit` type buttons
This commit is contained in:
Luke Edwards 2018-10-18 15:07:37 +13:00 committed by GitHub
commit b8bb4f7f4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",
)
);
}