From cc16dc5a0de21e864df5d053f102a8a441ecb600 Mon Sep 17 00:00:00 2001 From: Neo Nie Date: Mon, 24 Aug 2020 19:40:14 +0800 Subject: [PATCH] fix: remove propTypes for Column.key --- CHANGELOG.md | 2 ++ src/Column.js | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 63c0abbf..45cd9619 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## NEXT VERSION +- fix: remove propTypes for Column.key + ## v1.11.2 (2020-08-18) - fix: add missing types for propTypes of `BaseTable` diff --git a/src/Column.js b/src/Column.js index 539210d0..362ad617 100644 --- a/src/Column.js +++ b/src/Column.js @@ -20,10 +20,6 @@ export const FrozenDirection = { class Column extends React.Component {} Column.propTypes = { - /** - * Unique key for each column - */ - key: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired, /** * Class name for the column cell, could be a callback to return the class name * The callback is of the shape of `({ cellData, columns, column, columnIndex, rowData, rowIndex }) => string`