make the selected items actually selected

This commit is contained in:
b1ek 2024-11-11 23:15:30 +10:00
parent 5e9debc620
commit 9d5dda9fe2
Signed by: blek
GPG Key ID: A622C22C9BC616B2
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ function PostDraggableListItem({ item, dragHandleProps, rows, setRows }: { item:
<div className={style.draggableListRow}> <div className={style.draggableListRow}>
<span> <span>
<label for={`row-list-${item.id}`} style={{ display: 'none' }}>Select</label> <label for={`row-list-${item.id}`} style={{ display: 'none' }}>Select</label>
<input type='checkbox' id={`row-list-${item.id}`} onChange={onChange}/> <input type='checkbox' id={`row-list-${item.id}`} checked onChange={onChange}/>
<GripVertical {...dragHandleProps} /> <GripVertical {...dragHandleProps} />
</span> </span>
<Post className={style.posts} row={item} /> <Post className={style.posts} row={item} />