Skip to content

Commit

Permalink
Boolean table cell in edit mode (#2258) (#2260)
Browse files Browse the repository at this point in the history
resolves #2257

Co-authored-by: Fred Lefévère-Laoide <[email protected]>
  • Loading branch information
FredLL-Avaiga and Fred Lefévère-Laoide authored Nov 19, 2024
1 parent abd98ed commit a841494
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/taipy-gui/src/components/Taipy/tableUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ export const EditableCell = (props: EditableCellProps) => {
{edit ? (
colDesc.type?.startsWith("bool") ? (
<Box sx={cellBoxSx}>
lightBool ? (
{useCheckbox ? (
<input
type="checkbox"
checked={val as boolean}
Expand All @@ -568,7 +568,7 @@ export const EditableCell = (props: EditableCellProps) => {
inputRef={setInputFocus}
className={getSuffixedClassNames(tableClassName, "-bool")}
/>
)
)}
<Box sx={iconsWrapperSx}>
<IconButton onClick={onCheckClick} size="small" sx={iconInRowSx}>
<CheckIcon fontSize="inherit" />
Expand Down Expand Up @@ -724,6 +724,7 @@ export const EditableCell = (props: EditableCellProps) => {
checked={value as boolean}
title={boolTitle}
style={defaultCursor}
readOnly
className={getSuffixedClassNames(tableClassName, "-bool")}
/>
) : (
Expand Down

0 comments on commit a841494

Please sign in to comment.