Skip to content

Commit e842f5b

Browse files
committed
fix
1 parent ffa7abd commit e842f5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pat/validation/validation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ class Pattern extends BasePattern {
260260
this.check_input({ input: not_before_el, stop: true });
261261
}
262262
} 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)
263+
const min_values = input_options.minValues !== null && parseInt(input_options.minValues, 10) || null;
264+
const max_values = input_options.maxValues !== null && parseInt(input_options.maxValues, 10) || null;
265265

266266
let number_values = 0;
267267
for (const _inp of this.el.elements) {

0 commit comments

Comments
 (0)