ryan 6 лет назад
Родитель
Сommit
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>