From 30a4f34fbfebf0f1219b6a2ecff034314c9621ae Mon Sep 17 00:00:00 2001 From: Martin Portevin Date: Sun, 14 Jan 2018 08:44:17 +0100 Subject: [PATCH] Fix stopPropagation on click if no GridFieldEditableColumns stopPropagation shouldn't fire if no GridFieldEditableColumns was added. It forces user to click on edit button on the far right instead of directly being able to click anywhere on the row. --- javascript/GridFieldExtensions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/GridFieldExtensions.js b/javascript/GridFieldExtensions.js index d961716..2c2f478 100644 --- a/javascript/GridFieldExtensions.js +++ b/javascript/GridFieldExtensions.js @@ -250,7 +250,7 @@ * GridFieldEditableColumns */ - $('.grid-field .ss-gridfield-item').entwine({ + $('.ss-gridfield-editable .ss-gridfield-item').entwine({ onclick: function(e) { // Prevent the default row click action when clicking a cell that contains a field if (this.find('.editable-column-field').length) {