Skip to content

Commit c7d9ddc

Browse files
authored
MMT-4058b: Fixing checkbox error (#1415)
1 parent 954aa78 commit c7d9ddc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

static/src/js/components/CollectionAssociationForm/CollectionAssociationForm.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,8 @@ const CollectionAssociationForm = ({ metadata }) => {
306306
// Creates an action cell based on the current concept type
307307
const buildActionsCell = useCallback((cellData, rowData) => {
308308
let disabled = false
309-
let checked = false
309+
// Use null to allow uncontrolled checkbox behavior, preserving toggle functionality
310+
let checked = null
310311

311312
const { conceptId: collectionConceptId } = rowData
312313
const { collections = {} } = fetchedDraft

0 commit comments

Comments
 (0)