What steps will reproduce the problem?
1. add a child node with a tooltip "te'st"
expected result : the node display a tooltip "te'st"
actual result : the node display a tooltip "te"
To fix this issue, I change the code at the lignes 218 :
Before :
if(!nodeTitle){
var tooltip = data.tooltip ? " title='" + data.tooltip + "'" : "";
if( opts.noLink || data.noLink ) {
nodeTitle = "<span style='display: inline-block;' class='" + opts.classNames.title + "'" + tooltip + ">" + data.title + "</span>";
// this.tree.logDebug("nodeTitle: " + nodeTitle);
}else{
nodeTitle = "<a href='#' class='" + opts.classNames.title + "'" + tooltip + ">" + data.title + "</a>";
}
}
After (fix) :
if(!nodeTitle){
var tooltip = data.tooltip ? ' title="' + data.tooltip.replace(/\"/g, '"') + '"' : '';
if( opts.noLink || data.noLink ) {
nodeTitle = '<span style="display:inline-block;" class="' + opts.classNames.title + '"' + tooltip + '>' + data.title + '</span>';
// this.tree.logDebug("nodeTitle: " + nodeTitle);
} else {
nodeTitle = '<a href="#" class="' + opts.classNames.title + '"' + tooltip + '>' + data.title + '</a>';
}
}
Labels: Milestone-Release1.2.1