Skip to content

Commit 06a25dd

Browse files
committed
Fix #366: Target is undefined on row whitout link (rowlink)
1 parent 7afeefd commit 06a25dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/rowlink.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
Rowlink.prototype.click = function(e, ctrlKey) {
3434
var target = $(e.currentTarget).closest('tr').find(this.options.target)[0]
3535

36-
if ($(e.target)[0] === target) return
36+
if (typeof target == 'undefined' || $(e.target)[0] === target) return
3737
if (e.type === 'mouseup' && e.which !== 2) return
3838

3939
e.preventDefault();

0 commit comments

Comments
 (0)