diff --git a/assets/controllers/elements/datatables/parts_controller.js b/assets/controllers/elements/datatables/parts_controller.js index 1fe11a20..23e110af 100644 --- a/assets/controllers/elements/datatables/parts_controller.js +++ b/assets/controllers/elements/datatables/parts_controller.js @@ -42,11 +42,11 @@ export default class extends DatatablesController { const selectPanel = this.selectPanelTarget; - //Hide/Unhide panel with the selection tools + //Toggle action button based on selection if (count > 0) { - selectPanel.classList.remove('d-none'); + document.getElementById("selectPanel_submit").disabled = false; } else { - selectPanel.classList.add('d-none'); + document.getElementById("selectPanel_submit").disabled = true; } //Update selection count text diff --git a/templates/components/datatables.macro.html.twig b/templates/components/datatables.macro.html.twig index 5ce0f23f..28885432 100644 --- a/templates/components/datatables.macro.html.twig +++ b/templates/components/datatables.macro.html.twig @@ -29,14 +29,14 @@ -