Browse Source

#2041 Adds showonFocus option to dropdown

pull/2092/head
jlukic 9 years ago
parent
commit
87b3cd08c5
1 changed files with 6 additions and 2 deletions
  1. 8
      src/definitions/modules/dropdown.js

8
src/definitions/modules/dropdown.js

@ -526,7 +526,7 @@ $.fn.dropdown = function(parameters) {
event: {
focus: function() {
if(!activated && module.is.hidden()) {
if(settings.showonFocus && !activated && module.is.hidden()) {
module.show();
}
},
@ -558,7 +558,9 @@ $.fn.dropdown = function(parameters) {
search: {
focus: function() {
activated = true;
module.show();
if(settings.showOnFocus) {
module.show();
}
},
blur: function(event) {
var
@ -2074,6 +2076,8 @@ $.fn.dropdown.settings = {
action : 'activate',
allowTab : true,
showOnFocus : true,
fullTextSearch : false,
preserveHTML : true,
sortSelect : false,

Loading…
Cancel
Save