Skip to content

Commit decf92e

Browse files
committed
Propagate mouseup events when not dragging toolbar
In Chrome (this does not affect Firefox) onchange events on multi-selects are not fired all of the time e.g. with the following template: <body> <select multiple="multiple" onchange="console.log('clicked');"> <option value="1">1</option> </select> </body> Ctrl click on the option and view the js log. many of the events will not register. Therefore stop propagation and prevent default action only when handle is dragged.
1 parent 06c3824 commit decf92e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debug_toolbar/static/debug_toolbar/js/toolbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@
160160
setTimeout(function () {
161161
djdt.handleDragged = false;
162162
}, 10);
163+
return false;
163164
}
164-
return false;
165165
});
166166
$(document).bind('close.djDebug', function() {
167167
// If a sub-panel is open, close that

0 commit comments

Comments
 (0)