Skip to content

[BUG] Checkbox and RadioButton are not using native components to utilise form events #45

Description

@eugenebelov

Describe the bug
Checkbox and RadioButton are not using native components to utilise form events. So in future it is not possible to use that component direcly in forms

Component(s) affected
Checkbox, RadioButton

Expected behavior
Using for example RadioButton in a code, should be same as native component

Environment information:

  • CSPR.design version: [e.g. 1.2.3]
  • React version: [e.g. 18.2.0]
  • TypeScript version: [e.g. 4.9.5]
  • Bundler: [e.g. Vite 4.0.0, Webpack 5.75.0]
  • Browser: [e.g. Chrome 108, Firefox 107, Safari 16]
  • Operating System: [e.g. macOS 13.1, Windows 11, Ubuntu 22.04]

Additional context
Add any other context about the problem here. Include any error messages, console logs, or related issues.

Storybook reference
[If the issue is visible in CSPR.design Storybook, please provide a link to the relevant story.](https://storybook.cspr.design/?path=/story/components-form-radiobutton--primary)

Are you willing to submit a pull request to fix this bug?

  • Yes
  • No

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions