From dda38c7266324fc54979c59a906d9df93791b259 Mon Sep 17 00:00:00 2001 From: Sergey Khval Date: Sat, 27 Feb 2016 00:22:32 +0300 Subject: [PATCH] Fix #880, hidden inputs are not wrapped with form-group --- scripts/material.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/material.js b/scripts/material.js index 7b8e7466..5d805cda 100644 --- a/scripts/material.js +++ b/scripts/material.js @@ -114,7 +114,7 @@ // Requires form-group standard markup (will add it if necessary) var $formGroup = $input.closest(".form-group"); // note that form-group may be grandparent in the case of an input-group - if ($formGroup.length === 0) { + if ($formGroup.length === 0 && $input.attr('type') !== "hidden" && !$input.attr('hidden')) { $input.wrap("
"); $formGroup = $input.closest(".form-group"); // find node after attached (otherwise additional attachments don't work) }