Skip to content

Commit 486d62e

Browse files
author
Eugene Tupikov
committed
Merge branch 'fiamma06-master'
2 parents 7428c9f + 4734bbb commit 486d62e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

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

77
- Enh: increased default value for the property `limit` (ivansal)
88
- Enh: Added support of associative array in data (ivansal)
9+
- Bug: fixed double execution events for included MultipleInput (fiamma06)
910

1011
1.2.16
1112
------

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@
8181

8282

8383
$wrapper.on('click.multipleInput', '.js-input-remove', function (e) {
84-
e.preventDefault();
84+
e.stopPropagation();
8585
removeInput($(this));
8686
});
8787

8888
$wrapper.on('click.multipleInput', '.js-input-plus', function (e) {
89-
e.preventDefault();
89+
e.stopPropagation();
9090
addInput($(this));
9191
});
9292

@@ -299,4 +299,4 @@
299299
String.prototype.replaceAll = function (search, replace) {
300300
return this.split(search).join(replace);
301301
};
302-
})(window.jQuery);
302+
})(window.jQuery);

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)