Clicking checkboxes
See original GitHub issueHi,
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:
- Created 6 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks chief! Will push out a new release in a bit
Here you go: https://github.com/rexxars/react-markdown/pull/121