We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8c9712 commit 87caa37Copy full SHA for 87caa37
packages/react-bootstrap-table2/src/header-cell.js
@@ -77,6 +77,12 @@ class HeaderCell extends eventDelegater(React.Component) {
77
78
if (sort) {
79
const customClick = cellAttrs.onClick;
80
+ cellAttrs.onKeyUp = (e) => {
81
+ if (e.key === 'Enter') {
82
+ onSort(column);
83
+ if (_.isFunction(customClick)) customClick(e);
84
+ }
85
+ };
86
cellAttrs.onClick = (e) => {
87
onSort(column);
88
if (_.isFunction(customClick)) customClick(e);
0 commit comments