Skip to content

Commit

Permalink
fix addind active form fields doesn't work properly in case of 10 row…
Browse files Browse the repository at this point in the history
…s and more
  • Loading branch information
Eugene Tupikov committed Mar 30, 2024
1 parent c94c992 commit 6713762
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Yii2 multiple input change log

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

2.28.0
=======================
Expand Down
4 changes: 2 additions & 2 deletions src/assets/src/js/jquery.multipleInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,8 @@
} else {
// fallback in case of using flatten widget - just remove all digital indexes
// and check whether attribute exists or not.
bareId = replaceAll(/-\d-/, '-', bareId);
bareId = replaceAll(/-\d/, '', bareId);
bareId = replaceAll(/-\d+-/, '-', bareId);
bareId = replaceAll(/-\d+/, '', bareId);
if (data.settings.attributes.hasOwnProperty(bareId)) {
attributeOptions = data.settings.attributes[bareId];
}
Expand Down
2 changes: 1 addition & 1 deletion src/assets/src/js/jquery.multipleInput.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6713762

Please sign in to comment.