Skip to content

Commit b5f5f46

Browse files
authored
Update tooltip.md (#10813)
Fixed spawn closes before its content.
1 parent ca326b7 commit b5f5f46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/configuration/tooltip.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ const myPieChart = new Chart(ctx, {
304304
let style = 'background:' + colors.backgroundColor;
305305
style += '; border-color:' + colors.borderColor;
306306
style += '; border-width: 2px';
307-
const span = '<span style="' + style + '"></span>';
308-
innerHtml += '<tr><td>' + span + body + '</td></tr>';
307+
const span = '<span style="' + style + '">' + body + '</span>';
308+
innerHtml += '<tr><td>' + span + '</td></tr>';
309309
});
310310
innerHtml += '</tbody>';
311311

0 commit comments

Comments
 (0)