Skip to content

Commit 95560a1

Browse files
committed
Update for max value, because with config max value 0, it wasn't working
1 parent 39abd63 commit 95560a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

j-Range/component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ COMPONENT('range', function(self, config) {
5959

6060
var attrs = [];
6161
config.step && attrs.attr('step', config.step);
62-
config.max && attrs.attr('max', config.max);
62+
(config.max || config.max === 0) && attrs.attr('max', config.max);
6363
config.min && attrs.attr('min', config.min);
6464
self.html('{0}<input type="range" data-jc-bind=""{1} />'.format(html, attrs.length ? ' ' + attrs.join(' ') : ''));
6565
};

0 commit comments

Comments
 (0)