Skip to main content

Search and Top Navigation

#14971 closed bug (notabug)

Opened May 18, 2016 08:01AM UTC

Closed October 12, 2016 03:56PM UTC

Jquery UI Selectable - event fires twice when browser was left

Reported by: thmoeller Owned by: thmoeller
Priority: minor Milestone: none
Component: ui.selectable Version: 1.11.3
Keywords: Cc:
Blocked by: Blocking:

I have a selectable table with jquery ui and metakey active. For testing purpose i am alerting whenever a row is selected or deselected. This works as long as the focus remains within the browser (tested with Chrome, latest release). But when i click on an other application window and then return to the table directly clicking on a row, the selected event fires twice (two alerts).

$("#sel-table tbody").bind("mousedown", function(e) {

e.metaKey = true;


selected: function( e, ui ) {




unselected: function( e, ui ) {





Complete code on JS Fiddle (

Is it a bug or feature. If feature, how can this be avoided?? Any ideas on this??


Attachments (0)
Change History (3)

Changed May 25, 2016 11:49AM UTC by scottgonzalez comment:1

owner: → thmoeller
status: newpending

I'm not seeing this behavior. Can you please list the steps in detail? Are you seeing this only in certain browsers? Are you seeing this if you don't use alert()?

Changed May 25, 2016 11:50AM UTC by scottgonzalez comment:2

component: ui.coreui.selectable

Changed October 12, 2016 03:56PM UTC by scottgonzalez comment:3

resolution: → notabug
status: pendingclosed

Closing due to inactivity.