From 5d9ad98106fb78ddf921f24a530f874818c213c9 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Wed, 4 Jul 2018 13:53:15 +0200 Subject: [PATCH] fix for https://github.com/rstaib/jquery-bootgrid/issues/364, when rowselect is enabled the click event is triggered twice. Exclude row toggle event on checkbox click should prevent this from happening, which still leaves a small style issue in there if rowSelect and multiselect are both disabled. --- src/internal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal.js b/src/internal.js index 9b9bba4..117f4f2 100644 --- a/src/internal.js +++ b/src/internal.js @@ -649,7 +649,7 @@ function registerRowEvents(tbody) var that = this, selectBoxSelector = getCssSelector(this.options.css.selectBox); - if (this.selection) + if (this.selection && !this.options.rowSelect) { tbody.off("click" + namespace, selectBoxSelector) .on("click" + namespace, selectBoxSelector, function(e)