Browse Source

Fix decimal steps in number input type.

Azuka Okuleye 11 years ago
parent
commit
6a8a4f7083
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/js/validator/integer.js

+ 1 - 1
src/js/validator/integer.js

@@ -5,7 +5,7 @@
 
     $.fn.bootstrapValidator.validators.integer = {
         enableByHtml5: function($field) {
-            return ('number' === $field.attr('type'));
+            return ('number' == $field.attr('type') && ( typeof($field.prop('step')) == 'undefined' || $field.prop('step') % 1 === 0  ));
         },
 
         /**