question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clicking checkboxes

See original GitHub issue

Hi,

If I use source like - [ ] checkbox and click on the checkbox, this warning is displayed:

Warning: Failed prop type: You provided a `checked` prop to a form field without an
`onChange` handler. This will render a read-only field. If the field should be mutable
use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.
    in input (created by ListItem)

It would be interesting to provide some way to actually handle the state changes other than changing the markdown source itself, but it sounds like a lot of work to handle the fact that the structure of the checkbox inputs is completely dynamic depending on the source. So it might be a good idea to make checkbox inputs readOnly by default to at least suppress the warning and make the behavior clear.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rexxarscommented, Dec 8, 2017

Thanks chief! Will push out a new release in a bit

0reactions
philrajcommented, Dec 8, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

usability - What is more accurate "Click in the checkbox" or ...
"Click on the checkbox" is probably both more natural and more accurate, however. For a computer interface, ...
Read more >
Click all checkboxes
Click (emphasis on the "CLICK", not just CHECK) all checkboxes on a page, firing any click events that may be attached to them....
Read more >
Checkbox.click() - Form « JavaScript Tutorial - Java2s.com
document.form.checkbox.click(). The click() method simulates the click event. The clicked property is adjusted accordingly when this method is used.
Read more >
How To Display Text when a Checkbox is Checked - W3Schools
Display some text when the checkbox is checked: Checkbox: Checkbox is CHECKED! Check Whether a Checkbox is Checked. Step 1) Add HTML: Example....
Read more >
Check checkbox when clicking on description - Stack Overflow
The problem I am having is how do I enable the description so that when I click on the description, the checkbox is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found