From 39e48ba2c04b894696c2c3ead9077758aca2a9e5 Mon Sep 17 00:00:00 2001 From: Marcos Mariano Date: Thu, 15 Jan 2015 16:11:18 -0200 Subject: [PATCH] Select fix This fixed restore default if you initiate a new semantic ui dropdown by using select tags instead of the raw markup --- src/definitions/behaviors/form.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/definitions/behaviors/form.js b/src/definitions/behaviors/form.js index 44f7be1e1..6228040eb 100644 --- a/src/definitions/behaviors/form.js +++ b/src/definitions/behaviors/form.js @@ -163,6 +163,8 @@ $.fn.form = function(fields, parameters) { switch (type) { case 'hidden': + case 'select-one': + case 'select-multiple': $parent.is('.ui.dropdown') && $parent.dropdown('restore defaults'); break; case 'checkbox':