aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/EditableView.tsx
diff options
context:
space:
mode:
authorNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-06-03 10:23:38 -0400
committerNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-06-03 10:23:38 -0400
commit5b6e6b27a191a880fd454ebbc5ed3816cd5cd59c (patch)
tree9856860893051c997f6aaba06f0d7373e2aafc79 /src/client/views/EditableView.tsx
parent52b8410f14c4e522b0d7bbdbfb64d8fdbd5c3023 (diff)
new columns display blank
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 4c4ef227a..5b691c507 100644
--- a/src/client/views/EditableView.tsx
+++ b/src/client/views/EditableView.tsx
@@ -56,6 +56,7 @@ export interface EditableProps {
wrap?: string; // nowrap, pre-wrap, etc
showKeyNotVal?: boolean;
+ updateAlt?: (newAlt: string) => void;
}
/**
@@ -182,6 +183,7 @@ export class EditableView extends ObservableReactComponent<EditableProps> {
@action
onClick = (e: React.MouseEvent) => {
+ if (this._props.GetValue() == 'None' && this._props.updateAlt) this._props.updateAlt('.');
if (this._props.editing !== false) {
e.nativeEvent.stopPropagation();
if (this._ref.current && this._props.showMenuOnLoad) {