Skip to content

Commit 2440c6e

Browse files
committed
FIX: props not being passed down correctly
1 parent 20b33d1 commit 2440c6e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/kit-headless/src/components/checkbox/checklist-indicator.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import { component$, useContext, PropsOf, Slot } from '@builder.io/qwik';
22
import { CheckListContext } from './context-id';
3+
import { props } from 'cypress/types/bluebird';
34

45
export type ChecklistIndicatorProps = PropsOf<'div'>;
56

6-
export const ChecklistIndicator = component$<ChecklistIndicatorProps>(() => {
7+
export const ChecklistIndicator = component$<ChecklistIndicatorProps>((props) => {
78
const { checklistSig } = useContext(CheckListContext);
89
// weird comparions, but it gets the right behavior
910
return (
10-
<>
11+
<div {...props}>
1112
{checklistSig.value === true && (
1213
<div class={checklistSig.value === true ? 'visible' : 'invisible'}>
1314
<Slot name="checkbox" />
@@ -25,6 +26,6 @@ export const ChecklistIndicator = component$<ChecklistIndicatorProps>(() => {
2526
<Slot name="checklist" />
2627
</div>
2728
)}
28-
</>
29+
</div>
2930
);
3031
});

0 commit comments

Comments
 (0)