Skip to content

Commit

Permalink
Fix stopPropagation on click if no GridFieldEditableColumns
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
DrMartinGonzo authored Jan 14, 2018
1 parent dc34dbe commit 30a4f34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/GridFieldExtensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 30a4f34

Please sign in to comment.