We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 945c49a commit eb880aeCopy full SHA for eb880ae
client/packages/lowcoder/src/components/table/EditableCell.tsx
@@ -131,17 +131,19 @@ export function EditableCell<T extends JSONValue>(props: EditableCellProps<T>) {
131
{status === "toSave" && !isEditing && <EditableChip />}
132
{normalView}
133
{/* overlay on normal view to handle double click for editing */}
134
- <div
135
- style={{
136
- position: 'absolute',
137
- top: 0,
138
- left: 0,
139
- width: '100%',
140
- height: '100%',
141
- }}
142
- onDoubleClick={enterEditFn}
143
- >
144
- </div>
+ {editable && (
+ <div
+ style={{
+ position: 'absolute',
+ top: 0,
+ left: 0,
+ width: '100%',
+ height: '100%',
+ }}
+ onDoubleClick={enterEditFn}
+ >
145
+ </div>
146
+ )}
147
</ColumnTypeView>
148
);
149
}
0 commit comments