Confused about context.
No poc, as there's too much code. Here's the dir of the component:
https://github.com/paulm17/mantinesolid/tree/main/packages/%40mantine/core/src/component/Checkbox
Here's the component in action:
https://mantine.dev/core/checkbox/#checkboxcard-component
It's the one below the text:
Here is the context provider:
https://github.com/paulm17/mantinesolid/blob/main/packages/%40mantine/core/src/component/Checkbox/CheckboxGroup/CheckboxGroup.tsx#L81
Here is the card onclick event:
https://github.com/paulm17/mantinesolid/blob/main/packages/%40mantine/core/src/component/Checkbox/CheckboxCard/CheckboxCard.tsx#L130
All I can get is the onclick event and then nothing.
What is annoying
Checkbox Indicator on it's own - Works
CheckboxCard and/or CheckboxIndicator - Works
CheckboxGroup + CheckboxCard + Checkbox Indicator - Does not work uncontrolled/controlled
https://github.com/paulm17/mantinesolid/tree/main/packages/%40mantine/core/src/component/Checkbox
Here's the component in action:
https://mantine.dev/core/checkbox/#checkboxcard-component
It's the one below the text:
You can use Checkbox.Card with Checkbox.Group the same way as Checkbox component:
Here is the context provider:
https://github.com/paulm17/mantinesolid/blob/main/packages/%40mantine/core/src/component/Checkbox/CheckboxGroup/CheckboxGroup.tsx#L81
Here is the card onclick event:
https://github.com/paulm17/mantinesolid/blob/main/packages/%40mantine/core/src/component/Checkbox/CheckboxCard/CheckboxCard.tsx#L130
All I can get is the onclick event and then nothing.
What is annoying
Checkbox Indicator on it's own - Works
CheckboxCard and/or CheckboxIndicator - Works
CheckboxGroup + CheckboxCard + Checkbox Indicator - Does not work uncontrolled/controlled
