Skip to content

Commit ccdf7ea

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

File tree

1 file changed

+2
-2
lines changed
  • openwisp_controller/config/static/config/js

1 file changed

+2
-2
lines changed

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 && data.updateInitialValue === true);
493493
});
494494
$(".sortedm2m-items").on("sortstop", function () {
495495
getDefaultValues();

0 commit comments

Comments
 (0)