Update tooltip.md (#10813)

Fixed spawn closes before its content.
This commit is contained in:
Philippe Jaubert 2022-10-19 15:13:34 +02:00 committed by GitHub
parent ca326b75e7
commit b5f5f468d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -304,8 +304,8 @@ const myPieChart = new Chart(ctx, {
let style = 'background:' + colors.backgroundColor; let style = 'background:' + colors.backgroundColor;
style += '; border-color:' + colors.borderColor; style += '; border-color:' + colors.borderColor;
style += '; border-width: 2px'; style += '; border-width: 2px';
const span = '<span style="' + style + '"></span>'; const span = '<span style="' + style + '">' + body + '</span>';
innerHtml += '<tr><td>' + span + body + '</td></tr>'; innerHtml += '<tr><td>' + span + '</td></tr>';
}); });
innerHtml += '</tbody>'; innerHtml += '</tbody>';