Skip to content

Commit

Permalink
demo(table): Added missed event
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan Lundgren authored and Johan Lundgren committed Jun 20, 2024
1 parent 42d6a55 commit 38dd9d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/TanstackPage/EditableCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,21 @@ const EditableCell = ({
return !isFocused ? (
<div style={{ display: 'table-cell' }} key={id} tabIndex={index}>
<input
readOnly
style={{
paddingLeft: '16px',
height: '49px',
border: 'none',
backgroundColor: 'transparent',
}}
defaultValue={value as string}
value={value as string}
onFocus={() => setIsFocused(true)}
/>
</div>
) : (
<TdsTextField
style={{ display: 'table-cell' }}
onTdsChange={(e: any) => _setValue(e.target.value)}
size="md"
ref={inputRef}
noMinWidth
Expand Down

0 comments on commit 38dd9d4

Please sign in to comment.