vmware-clarity / core

Clarity is a scalable, accessible, customizable, open-source design system built with web components. Works with any JavaScript framework, created for enterprises, and designed to be inclusive.
https://clarity.design
MIT License
163 stars 42 forks source link

Checkbox and radio do not update controller value with form's update on blur option #198

Closed jtruffot closed 1 year ago

jtruffot commented 1 year ago

Describe the bug

When using update on blur option of angular reactive form, checkbox and radio components do not update the value of their controller. The click on the component is correctly transmitted to the input but not the focus.

How to reproduce

Steps to reproduce the behavior:

  1. Go to this stackblitz example
  2. Click on checkbox or radio components
  3. Check that form value is not updated
  4. Activate workaround. Now form value is update on blur.

Expected behavior

Clicking on the checkbox and radio components should give them focus in order to update on the blur.

Versions

Clarity project:

Clarity version:

Framework:

Framework version: Angular 13

Device:

Additional notes

A workaround is to give focus to the input on click.

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 6.2.4 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] commented 1 year ago

Hi there 👋, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.