Skip to content

Commit f3fb78c

Browse files
committed
Fixed client validation when there are more then 10 rows
1 parent 0236068 commit f3fb78c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/assets/src/js/jquery.multipleInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@
356356
// try to find options for embedded attribute at first.
357357
// For example the id of new input is example-1-field-0.
358358
// We remove last index and check whether attribute with such id exists or not.
359-
var bareId = id.replace(/-\d-([^\d]+)$/, '-$1');
359+
var bareId = id.replace(/-\d+-([^\d]+)$/, '-$1');
360360
if (data.settings.attributes.hasOwnProperty(bareId)) {
361361
attributeOptions = data.settings.attributes[bareId];
362362
} else {

src/assets/src/js/jquery.multipleInput.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)