From 8fb0e146607655044fcfd9ae83e4311a01e50f79 Mon Sep 17 00:00:00 2001 From: Alexander Prinzhorn Date: Sat, 19 Mar 2011 23:08:50 +0100 Subject: [PATCH] Selectable: Click events will now correctly fire on selectables. Fixed #4219 - Can't bind events to a table row after it has been made selectable The lasso is now positioned outside the viewport (not under the mouse) when it's added, since it's size is 0 anyway. --- ui/jquery.ui.selectable.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/jquery.ui.selectable.js b/ui/jquery.ui.selectable.js index fa7d011229c..015313be412 100644 --- a/ui/jquery.ui.selectable.js +++ b/ui/jquery.ui.selectable.js @@ -88,9 +88,10 @@ $.widget("ui.selectable", $.ui.mouse, { $(options.appendTo).append(this.helper); // position helper (lasso) + // position it outside the window to prevent click-event issues. #4219 this.helper.css({ - "left": event.clientX, - "top": event.clientY, + "left": -1, + "top": -1, "width": 0, "height": 0 });