aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/EditableView.tsx
diff options
context:
space:
mode:
authorNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-06-24 13:49:43 -0400
committerNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-06-24 13:49:43 -0400
commit227a289e49019ad1e9f634b098bb564bd4a8e743 (patch)
tree548282da1c5d317803ca5f7d2a284ac8cc27e924 /src/client/views/EditableView.tsx
parent9197630d59f4ae4624e3b47b794e0a5fa7bc080d (diff)
cell/column highlight interactions (maybe some minor bugs left but at least 95%)
Diffstat (limited to 'src/client/views/EditableView.tsx')
-rw-r--r--src/client/views/EditableView.tsx8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/client/views/EditableView.tsx b/src/client/views/EditableView.tsx
index 8e48b4c11..0c09e12de 100644
--- a/src/client/views/EditableView.tsx
+++ b/src/client/views/EditableView.tsx
@@ -193,7 +193,7 @@ export class EditableView extends ObservableReactComponent<EditableProps> {
@action
onClick = (e?: React.MouseEvent) => {
this._props.onClick && this._props.onClick();
- if (this._props.editing) {
+ if (this._props.editing !== false) {
e?.nativeEvent.stopPropagation();
if (this._ref.current && this._props.showMenuOnLoad) {
this._props.menuCallback?.(this._ref.current.getBoundingClientRect().x, this._ref.current.getBoundingClientRect().y);
@@ -203,11 +203,7 @@ export class EditableView extends ObservableReactComponent<EditableProps> {
}
}
};
-
- // checkForInvalidText = (text: string) => {
- // const regX = new RegExp(new Array<string>(...this._props.prohibitedText), 'g')
- // }
-
+
@action
finalizeEdit(value: string, shiftDown: boolean, lostFocus: boolean, enterKey: boolean) {
//if (invalid) raise error