From 1be46d0193752c4158cf327b8d3f7421b2d1b60f Mon Sep 17 00:00:00 2001 From: mehekj Date: Wed, 22 Mar 2023 16:55:26 -0400 Subject: updated component library --- .../collections/collectionSchema/CollectionSchemaView.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx index 7a65b4436..4498a2258 100644 --- a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx +++ b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx @@ -27,6 +27,7 @@ import { DefaultStyleProvider } from '../../StyleProvider'; import { DocumentManager } from '../../../util/DocumentManager'; import { ScriptField } from '../../../../fields/ScriptField'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; +import { IconButton } from 'browndash-components'; export enum ColumnType { Number, @@ -889,10 +890,18 @@ export class CollectionSchemaView extends CollectionSubView() {
{ - this.openColumnMenu(-1, true); + this._columnMenuIndex && this._columnMenuIndex === -1 ? this.closeColumnMenu() : this.openColumnMenu(-1, true); }}>
+ {/* } + onPointerDown={e => { + console.log('clicked'); + this._columnMenuIndex && this._columnMenuIndex === -1 ? this.closeColumnMenu() : this.openColumnMenu(-1, true); + e.stopPropagation(); + }} + /> */} {this.columnKeys.map((key, index) => { return ( -- cgit v1.2.3-70-g09d2