I am using Datatable in jquery to display data on grid along with some action buttons. I am using below render function to display the data, but when the page fully load, I am unable to click on the audit trail icon. The cursor flickers when I hover over the icon for audit trail . It flickers between a hand symbol and an arrow symbol for cursor. -
"columns": [
// Your column definitions
{
"data": null,
"render": function (data, type, row) {
var actionHtml = '<a href="#" title="Download" data-toggle="tooltip" data-placement="right" class="file-download" data-recordid="' + row.patientId + '" data-filename="' + row.FileName + '">File</a>';
var auditTrail = "<button data-toggle='tooltip' title='Audit Trail' class='btn audit-trail' data-episode-id='" + row.episodeId + "'> <em class='fas fa-list' aria-hidden='true'></em></button>";
return actionHtml + " | " + auditTrail;
}
}
]
I have tried using literals ``, instead of single or double quote to enclose the button html, but this does not resolve this.
[<>]
and produce a minimal reproducible example with relevant frameworks and dummy datavar actionHtml = `<a href="#" title="Download" data-toggle="tooltip" data-placement="right" class="file-download" data-recordid="${row.patientId}" data-filename="${row.FileName}">File</a>`
;