aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/EditableView.tsx
diff options
context:
space:
mode:
authorNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-06-10 12:56:51 -0400
committerNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-06-10 12:56:51 -0400
commit4b604b5118a1aac89d977c832c81495ec2c9aa19 (patch)
tree73128d91c92b706365137eb7f18b00e686442e04 /src/client/views/EditableView.tsx
parentecea2cb94fa0ea3f9959b3a8f5f43ae7e98aa552 (diff)
lock row editing
Diffstat (limited to 'src/client/views/EditableView.tsx')
-rw-r--r--src/client/views/EditableView.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/EditableView.tsx b/src/client/views/EditableView.tsx
index 1652e6cd7..c05812e1a 100644
--- a/src/client/views/EditableView.tsx
+++ b/src/client/views/EditableView.tsx
@@ -57,6 +57,7 @@ export interface EditableProps {
wrap?: string; // nowrap, pre-wrap, etc
schemaHeader?: boolean;
+ onClick?: () => void;
updateAlt?: (newAlt: string) => void;
updateSearch?: (value: string) => void;
}
@@ -187,6 +188,7 @@ export class EditableView extends ObservableReactComponent<EditableProps> {
@action
onClick = (e?: React.MouseEvent) => {
+ this._props.onClick && this._props.onClick();
if (this._props.editing !== false) {
e?.nativeEvent.stopPropagation();
if (this._ref.current && this._props.showMenuOnLoad) {