From e1e2978b190200efc5134a71a1e27a4084a07bce Mon Sep 17 00:00:00 2001 From: Pritesh Nandgaonkar Date: Wed, 4 Dec 2019 08:10:41 -0800 Subject: [PATCH] Add copy cell option in network plugin Summary: Puts a context menu in the sidebar for the network plugin. Before, user was not able to select the text from sidebar Reviewed By: passy Differential Revision: D18808544 fbshipit-source-id: bdbc86972cd1d508e9b7d96da9df5c8e53bec991 --- src/ui/components/table/ManagedTable.tsx | 39 +++++++++++++----------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/src/ui/components/table/ManagedTable.tsx b/src/ui/components/table/ManagedTable.tsx index b10ce548e..5814668c0 100644 --- a/src/ui/components/table/ManagedTable.tsx +++ b/src/ui/components/table/ManagedTable.tsx @@ -615,23 +615,28 @@ export class ManagedTable extends React.Component< .filter(notNull); return ( - this.onHighlight(e, rows[index], index)} - onMouseEnter={e => this.onMouseEnterRow(e, rows[index], index)} - multiline={multiline} - rowLineHeight={24} - highlighted={highlightedRows.has(rows[index].key)} - row={rows[index]} - index={index} - style={ - rows[index].height ? {...style, height: rows[index].height} : style - } - onAddFilter={onAddFilter} - zebra={zebra} - /> + + this.onHighlight(e, rows[index], index)} + onMouseEnter={e => this.onMouseEnterRow(e, rows[index], index)} + multiline={multiline} + rowLineHeight={24} + highlighted={highlightedRows.has(rows[index].key)} + row={rows[index]} + index={index} + style={ + rows[index].height ? {...style, height: rows[index].height} : style + } + onAddFilter={onAddFilter} + zebra={zebra} + /> + ); };