uxcore-table
Advanced tools
Comparing version 1.8.0 to 1.8.1
@@ -229,7 +229,8 @@ 'use strict'; | ||
} else { | ||
var title = typeof item.title === 'function' ? item.title() : item.title; | ||
var content = typeof item.title === 'function' ? item.title() : item.title; | ||
var title = typeof item.title === 'function' ? undefined : item.title; | ||
_v = React.createElement( | ||
'span', | ||
{ title: title }, | ||
title | ||
content | ||
); | ||
@@ -236,0 +237,0 @@ } |
@@ -5,2 +5,6 @@ # History | ||
## 1.8.1 | ||
* `FIX` fix header title bug when column.title is a function. | ||
## 1.8.0 | ||
@@ -7,0 +11,0 @@ |
{ | ||
"name": "uxcore-table", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"description": "table ui component for react", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/uxcore/uxcore-table.git", |
@@ -194,4 +194,5 @@ /** | ||
} else { | ||
const title = (typeof item.title === 'function') ? item.title() : item.title; | ||
_v = <span title={title}>{title}</span>; | ||
const content = (typeof item.title === 'function') ? item.title() : item.title; | ||
const title = (typeof item.title === 'function') ? undefined : item.title; | ||
_v = <span title={title}>{content}</span>; | ||
} | ||
@@ -198,0 +199,0 @@ |
393194
7204