Skip to content

Commit

Permalink
Merge pull request #58 from cs169/187460464/bugfix/tooltip
Browse files Browse the repository at this point in the history
finish tooltip bug fix
  • Loading branch information
ArushC authored Apr 30, 2024
2 parents 5103c00 + ed3d7d5 commit 19dc0d8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/javascript/packs/datatables.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});

0 comments on commit 19dc0d8

Please sign in to comment.