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

Successive clicks on label are throttling OnChange listener

Open
#5 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
95
Forks
21
PR merge metrics
No merged PRs in 30d

Description

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

bug report

### What is the current behavior?

When a user clicks on a checkbox label, the event on the input is throttled causing the listening field stale to become stale.

### What is the expected behavior?

It should toggle quickly like clicking on the input directly does.

### Sandbox Link

https://codesandbox.io/s/zk2kmrwppm

Check both boys and girls then successively click the boys/girls label.

### What's your environment?

OSX, Node v8.11.1, npm 5.6.0

```
"final-form": "^4.10.0",
"react-final-form": "^3.6.5",
"react-final-form-listeners": "^1.0.1",
```

### Other information

This example is being used for another issue.

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.