Skip to content

Commit 24c0d91

Browse files
committed
Popup: Fix keyboard handling to prevent scrolling on keydown
1 parent cd92ad0 commit 24c0d91

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ui/jquery.ui.popup.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ $.widget( "ui.popup", {
6060
// translate keydown to click
6161
// opens popup and let's tooltip hide itself
6262
if ( event.keyCode == $.ui.keyCode.DOWN ) {
63+
// prevent scrolling
64+
event.preventDefault();
6365
this.options.trigger.trigger( "click", event );
6466
}
6567
},

0 commit comments

Comments
 (0)