From a841494e701a4a2e9c78a78022644bef454dc568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fred=20Lef=C3=A9v=C3=A8re-Laoide?= <90181748+FredLL-Avaiga@users.noreply.github.com> Date: Tue, 19 Nov 2024 16:55:08 +0100 Subject: [PATCH] Boolean table cell in edit mode (#2258) (#2260) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit resolves #2257 Co-authored-by: Fred Lefévère-Laoide --- frontend/taipy-gui/src/components/Taipy/tableUtils.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/taipy-gui/src/components/Taipy/tableUtils.tsx b/frontend/taipy-gui/src/components/Taipy/tableUtils.tsx index 51c8604b66..cde96f8db3 100644 --- a/frontend/taipy-gui/src/components/Taipy/tableUtils.tsx +++ b/frontend/taipy-gui/src/components/Taipy/tableUtils.tsx @@ -548,7 +548,7 @@ export const EditableCell = (props: EditableCellProps) => { {edit ? ( colDesc.type?.startsWith("bool") ? ( - lightBool ? ( + {useCheckbox ? ( { inputRef={setInputFocus} className={getSuffixedClassNames(tableClassName, "-bool")} /> - ) + )} @@ -724,6 +724,7 @@ export const EditableCell = (props: EditableCellProps) => { checked={value as boolean} title={boolTitle} style={defaultCursor} + readOnly className={getSuffixedClassNames(tableClassName, "-bool")} /> ) : (