diff options
| author | Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> | 2024-06-28 19:36:44 -0400 |
|---|---|---|
| committer | Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> | 2024-06-28 19:36:44 -0400 |
| commit | 0080670351d472a5cdf01841a47ea98e0027fb53 (patch) | |
| tree | 5aa0ec9887765bba047fd7d28f4783de7f6673a4 /src/client/views/collections/collectionSchema/SchemaColumnHeader.tsx | |
| parent | db7e5ed3ac36f05787b809e2ae03c94f310ef3e4 (diff) | |
dragging col stops editing of schema header
Diffstat (limited to 'src/client/views/collections/collectionSchema/SchemaColumnHeader.tsx')
| -rw-r--r-- | src/client/views/collections/collectionSchema/SchemaColumnHeader.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/views/collections/collectionSchema/SchemaColumnHeader.tsx b/src/client/views/collections/collectionSchema/SchemaColumnHeader.tsx index e98a2c778..382d7487b 100644 --- a/src/client/views/collections/collectionSchema/SchemaColumnHeader.tsx +++ b/src/client/views/collections/collectionSchema/SchemaColumnHeader.tsx @@ -23,6 +23,7 @@ import { undoable } from '../../../util/UndoManager'; import { FInfo } from '../../../documents/Documents'; import { ColumnType } from '../../../../fields/SchemaHeaderField'; import { IconButton, Size } from 'browndash-components'; +import { TbHospital } from 'react-icons/tb'; export enum SchemaFieldType { Header, Cell @@ -72,6 +73,10 @@ export class SchemaColumnHeader extends ObservableReactComponent<SchemaColumnHea setColumnValues = (field: string, defaultValue: string) => {this._props.schemaView?.setKey(field, defaultValue, this._props.columnIndex);} @action updateAlt = (newAlt: string) => {this._altTitle = newAlt;} @action updateKeyDropdown = (value: string) => {this._props.schemaView.updateKeySearch(value)} + @action stopEditing = () => { + this._inputRef?.setIsEditing(false); + this._inputRef?.setIsFocused(false); + } openKeyDropdown = () => { this._props.schemaView.openColumnMenu(this._props.columnIndex, false) |
