From 87b3cd08c5c481de631c74150873e44f29ca4c62 Mon Sep 17 00:00:00 2001 From: jlukic Date: Tue, 7 Apr 2015 15:45:13 -0400 Subject: [PATCH] #2041 Adds showonFocus option to dropdown --- src/definitions/modules/dropdown.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index bf844a7c1..c350732c6 100644 --- a/src/definitions/modules/dropdown.js +++ b/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,