Skip to content

Commit 6448d4d

Browse files
committed
fix: 修复AntdTable服务端数据加载模式下keyword搜索功能异常的问题
1 parent e9b1a2a commit 6448d4d

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: fefferyAntdComponents
22
Title: Plotly Dash components based on Ant Design
3-
Version: 0.4.5
3+
Version: 0.4.6-rc1
44
Description: Plotly Dash components based on Ant Design
55
Depends: R (>= 3.0.2)
66
Imports:

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "FefferyAntdComponents"
33
uuid = "1b08a953-4be3-4667-9a23-674b58f7de79"
44
authors = ["CNFeffery <fefferypzy@gmail.com>"]
5-
version = "0.4.5"
5+
version = "0.4.6-rc1"
66

77
[deps]
88
Dash = "1b08a953-4be3-4667-9a23-3db579824955"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "feffery_antd_components",
3-
"version": "0.4.5",
3+
"version": "0.4.6-rc1",
44
"description": "Plotly Dash components based on Ant Design",
55
"repository": {
66
"type": "git",

src/lib/fragments/AntdTable.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ const AntdTable = (props) => {
453453
}
454454
},
455455
render: (text) =>
456-
searchedColumn === dataIndex ? (
456+
searchedColumn === dataIndex && isString(text) ? (
457457
<Highlighter
458458
highlightStyle={{ backgroundColor: '#ffc069', padding: 0 }}
459459
searchWords={[searchText]}

0 commit comments

Comments
 (0)