Skip to content

Commit 43899e1

Browse files
committed
[fix] Fixed default values event handler
1 parent b4d0b93 commit 43899e1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • openwisp_controller/config/static/config/js

openwisp_controller/config/static/config/js/widget.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,8 +488,8 @@
488488
getDefaultValues(true);
489489
});
490490
}
491-
$(".sortedm2m-items").on("change", function (event) {
492-
getDefaultValues(event.updateInitialValue === true);
491+
$(".sortedm2m-items").on("change", function (event, data) {
492+
getDefaultValues(data.updateInitialValue === true);
493493
});
494494
$(".sortedm2m-items").on("sortstop", function () {
495495
getDefaultValues();

0 commit comments

Comments
 (0)