Skip to content

Commit

Permalink
fix #921 Empty DataTable header cell shows empty tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
vegegoku committed Apr 14, 2024
1 parent d70aaf9 commit d6c93af
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -601,12 +601,12 @@ public CellStyler<T> getCellStyler() {
}

/**
* Checks if tooltips are shown for the column.
* Checks if tooltips are shown for the column and the column has a tooltip node or has a title.
*
* @return true if tooltips are shown, false otherwise
* @return true if tooltips are shown and there is a tooltip node or a title, false otherwise
*/
public boolean isShowTooltip() {
return showTooltip;
return showTooltip && (nonNull(tooltipNode) || (nonNull(title) && !title.trim().isEmpty()));
}

/**
Expand Down

0 comments on commit d6c93af

Please sign in to comment.