diff --git a/plugins/slick.autotooltips.js b/plugins/slick.autotooltips.js index 955684f2a..751596791 100644 --- a/plugins/slick.autotooltips.js +++ b/plugins/slick.autotooltips.js @@ -69,8 +69,8 @@ function handleHeaderMouseEnter(e, args) { var column = args.column, $node = $(e.target).closest(".slick-header-column"); - if (!column.toolTip) { - $node.attr("title", ($node.innerWidth() < $node[0].scrollWidth) ? column.name : ""); + if (column && !column.toolTip) { + $node.attr("title", ($node.innerWidth() < $node[0].scrollWidth) ? $("
").html(column.name).text() : ""); } } @@ -80,4 +80,4 @@ "destroy": destroy }); } -})(jQuery); \ No newline at end of file +})(jQuery);