diff --git a/resources/js/client-custom/nestedList.js b/resources/js/client-custom/nestedList.js new file mode 100644 index 0000000..0cfdde7 --- /dev/null +++ b/resources/js/client-custom/nestedList.js @@ -0,0 +1,29 @@ +document.addEventListener('DOMContentLoaded', function () { + document.querySelectorAll('.nested-list')?.forEach(function (list) { + list.querySelectorAll('li').forEach(function (li) { + // Check if the
  • has a