Skip to content

Commit 7dacd04

Browse files
committed
fixed double execution events for included MultipleInput
1 parent 7428c9f commit 7dacd04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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);

0 commit comments

Comments
 (0)