diff --git a/ereuse_devicehub/static/js/main.js b/ereuse_devicehub/static/js/main.js index fe2401ba..13646f28 100644 --- a/ereuse_devicehub/static/js/main.js +++ b/ereuse_devicehub/static/js/main.js @@ -245,4 +245,11 @@ tableListCheckboxes.forEach(ckeckbox => ckeckbox.checked = checkedState); }) + /** + * Avoid hide dropdown when user clicked inside + */ + document.getElementById("dropDownLotsSelector").addEventListener("click", event => { + event.stopPropagation(); + }) + })(); diff --git a/ereuse_devicehub/templates/inventory/device_list.html b/ereuse_devicehub/templates/inventory/device_list.html index 065f5f90..41b33e09 100644 --- a/ereuse_devicehub/templates/inventory/device_list.html +++ b/ereuse_devicehub/templates/inventory/device_list.html @@ -78,7 +78,7 @@ Lots -