We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffa7abd commit e842f5bCopy full SHA for e842f5b
src/pat/validation/validation.js
@@ -260,8 +260,8 @@ class Pattern extends BasePattern {
260
this.check_input({ input: not_before_el, stop: true });
261
}
262
} else if (input_options.minValues || input_options.maxValues) {
263
- const min_values = input_options.minValues !== null && parseInt(input_options.minValues, 10)
264
- const max_values = input_options.maxValues !== null && parseInt(input_options.maxValues, 10)
+ const min_values = input_options.minValues !== null && parseInt(input_options.minValues, 10) || null;
+ const max_values = input_options.maxValues !== null && parseInt(input_options.maxValues, 10) || null;
265
266
let number_values = 0;
267
for (const _inp of this.el.elements) {
0 commit comments