From 7b54e94d02cd90cbd6a5c845355148eaabee588c Mon Sep 17 00:00:00 2001 From: jlukic Date: Fri, 21 Nov 2014 17:12:28 -0500 Subject: [PATCH] Fixes #1267, bad selector for search in dropdown --- src/definitions/modules/dropdown.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index b914ba54b..61de64824 100644 --- a/src/definitions/modules/dropdown.js +++ b/src/definitions/modules/dropdown.js @@ -391,9 +391,11 @@ $.fn.dropdown = function(parameters) { }, focusSearch: function() { - $search - .focus() - ; + if( module.is.search() ) { + $search + .focus() + ; + } }, event: { @@ -1376,7 +1378,7 @@ $.fn.dropdown.settings = { dropdown : '.ui.dropdown', text : '> .text:not(.icon)', input : '> input[type="hidden"], > select', - search : '> .search, .menu > .search > input, .menu > input.search', + search : '> input.search, .menu > .search > input, .menu > input.search', menu : '.menu', item : '.item' },