Skip to content

Commit 6713762

Browse files
author
Eugene Tupikov
committed
fix addind active form fields doesn't work properly in case of 10 rows and more
1 parent c94c992 commit 6713762

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Yii2 multiple input change log
33

44
2.29.0 (in development)
55
=======================
6+
- fix addind active form fields doesn't work properly in case of 10 rows and more (unclead)
67

78
2.28.0
89
=======================

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,8 +464,8 @@
464464
} else {
465465
// fallback in case of using flatten widget - just remove all digital indexes
466466
// and check whether attribute exists or not.
467-
bareId = replaceAll(/-\d-/, '-', bareId);
468-
bareId = replaceAll(/-\d/, '', bareId);
467+
bareId = replaceAll(/-\d+-/, '-', bareId);
468+
bareId = replaceAll(/-\d+/, '', bareId);
469469
if (data.settings.attributes.hasOwnProperty(bareId)) {
470470
attributeOptions = data.settings.attributes[bareId];
471471
}

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)