From ed3d7d5cfd9ca58a6304ddbe414dbdeceadb0d05 Mon Sep 17 00:00:00 2001 From: MT Date: Thu, 25 Apr 2024 17:11:12 -0700 Subject: [PATCH] finish tooltip bug fix --- app/javascript/packs/datatables.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/javascript/packs/datatables.js b/app/javascript/packs/datatables.js index 35183279..fc6496ad 100644 --- a/app/javascript/packs/datatables.js +++ b/app/javascript/packs/datatables.js @@ -22,5 +22,12 @@ $(function() { }); $tables.draw(); - $(".custom-checkbox").on("change", () => $tables.draw()); + $(".custom-checkbox").on("change", () => { + console.log("custom-checkbox change"); + $tables.draw(); + }); + $tables.on('draw', function() { + $('[data-toggle="tooltip"]').tooltip('dispose'); + $('[data-toggle="tooltip"]').tooltip(); + }); });