From 35f349fbb62f0fbc72585b5157e2abcea9826fa8 Mon Sep 17 00:00:00 2001 From: jlukic Date: Tue, 2 Dec 2014 13:09:16 -0500 Subject: [PATCH] Adds #1351, set selected triggers onChange callback --- src/definitions/modules/dropdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index d933de98f..c1f33c478 100644 --- a/src/definitions/modules/dropdown.js +++ b/src/definitions/modules/dropdown.js @@ -578,7 +578,6 @@ $.fn.dropdown = function(parameters) { module.remove.searchTerm(); module.remove.filteredItem(); module.determine.selectAction(text, value); - $.proxy(settings.onChange, element)(value, text, $choice); }, openingSubMenu = ($choice.find(selector.menu).size() > 0) ; @@ -944,6 +943,7 @@ $.fn.dropdown = function(parameters) { .addClass(className.selected) ; module.set.text(selectedText); + $.proxy(settings.onChange, element)(value, selectedText, $selectedItem); } } },