From 680893bd42ca93150639b77e1dfe4ba252b92ea3 Mon Sep 17 00:00:00 2001 From: Tobias Weichart Date: Fri, 29 Apr 2016 09:31:58 +0200 Subject: [PATCH] fixed error with hidden required input fields --- js/bootstrap-combobox.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/bootstrap-combobox.js b/js/bootstrap-combobox.js index 70725b1..3e59797 100755 --- a/js/bootstrap-combobox.js +++ b/js/bootstrap-combobox.js @@ -105,6 +105,7 @@ this.$target.val(this.$source.val()) this.$source.removeAttr('name') // Remove from source otherwise form will pass parameter twice. this.$element.attr('required', this.$source.attr('required')) + this.$source.removeAttr('required') this.$element.attr('rel', this.$source.attr('rel')) this.$element.attr('title', this.$source.attr('title')) this.$element.attr('class', this.$source.attr('class'))