Skip to content
Permalink
Browse files

Selectmenu: Preserve text selection when interacting with the widget

Fixes #10144
Closes gh-1295
  • Loading branch information...
scottgonzalez committed Jul 29, 2014
1 parent 45e13ed commit 749a6a56677fe29d2bf777d79811ce8bdd1b5fad
Showing with 7 additions and 0 deletions.
  1. +7 −0 ui/selectmenu.js
@@ -355,7 +355,14 @@ return $.widget( "ui.selectmenu", {
},

_buttonEvents: {

// Prevent text selection from being reset when interacting with the selectmenu (#10144)
mousedown: function( event ) {
event.preventDefault();
},

click: "_toggle",

keydown: function( event ) {
var preventDefault = true;
switch ( event.keyCode ) {

0 comments on commit 749a6a5

Please sign in to comment.
You can’t perform that action at this time.