diff --git a/public/js/grocy.js b/public/js/grocy.js index aedc8da6..f24f7d82 100644 --- a/public/js/grocy.js +++ b/public/js/grocy.js @@ -696,3 +696,10 @@ $(document).on("click", "a.btn.link-return", function(e) location.href = U(link); } }); + +$('.dropdown-item').has('.form-check input[type=checkbox]').on('click', function (e) { + if($(e.target).is('div.form-check') || $(e.target).is('div.dropdown-item')) + { + $(e.target).find('input[type=checkbox]').click(); + } +})