final-form / final-form/react-final-form

Using ReactDOM.unstable_createRoot, clicking a label does not toggle the related checkbox.

Open
#600 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.4k
Forks
497
PR merge metrics
No merged PRs in 30d

Description

It may not be appropriate to submit this as React concurrent mode has not been officially released but anyway here goes.

### Are you submitting a **bug report** or a **feature request**?
Bug report.

### What is the current behavior?
Using ReactDOM.unstable_createRoot, clicking on a label does not toggle the related checkbox/input. One can double click a label to toggle the checkbox. Clicking the actual `` works as expected.

### What is the expected behavior?
Using ReactDOM.unstable_createRoot, single clicking a label toggles the checked state of the related ``.

### Sandbox Link
https://codesandbox.io/s/react-final-form-simple-example-f2ojr?fontsize=14

### What's your environment?
The codesandbox.io link above. Forked from the "Simple Example".

### Other information
Nope.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.