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.
This commit is contained in:
Martin Portevin 2018-01-14 08:44:17 +01:00 committed by Robbie Averill
parent 692b9df70c
commit af0f342c3b

View File

@ -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) {