From 2102d4ec8096d86b4ed2e999945c28cb681b4712 Mon Sep 17 00:00:00 2001 From: philw Date: Thu, 10 Sep 2015 17:52:28 +0100 Subject: [PATCH] Issue 168: Row click handler needs to identify original click target --- src/internal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internal.js b/src/internal.js index b13103a..0c25df0 100644 --- a/src/internal.js +++ b/src/internal.js @@ -691,8 +691,8 @@ function registerRowEvents(tbody) that.select([id]); } } - - that.element.trigger("click" + namespace, [that.columns, row]); + // Add in the original event target so listener can work out what was clicked. + that.element.trigger("click" + namespace, [that.columns, row, e.target]); }); }