ryan 6 年 前
コミット
c84c77e664
1 ファイル変更2 行追加2 行削除
  1. 2 2
      packages/grafana-ui/src/components/Table/Table.tsx

+ 2 - 2
packages/grafana-ui/src/components/Table/Table.tsx

@@ -165,7 +165,7 @@ export class Table extends Component<Props, State> {
     }
   };
 
-  handleCellClick = (rowIndex: number, columnIndex: number) => {
+  onCellClick = (rowIndex: number, columnIndex: number) => {
     const { row, column } = this.getCellRef(rowIndex, columnIndex);
     if (row < 0) {
       this.doSort(column);
@@ -190,7 +190,7 @@ export class Table extends Component<Props, State> {
     }
 
     return (
-      <div className="gf-table-header" style={style} onClick={() => this.handleCellClick(rowIndex, columnIndex)}>
+      <div className="gf-table-header" style={style} onClick={() => this.onCellClick(rowIndex, columnIndex)}>
         {col.text}
         {sorting && <SortIndicator sortDirection={sortDirection} />}
       </div>