mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-10-22 18:26:39 +02:00
Link <label for> to <input id>. Fixes #137
This commit is contained in:
@@ -24,6 +24,7 @@ const Details: React.FC<{}> = () => {
|
||||
|
||||
return (
|
||||
<label
|
||||
htmlFor="custom-checkbox-button"
|
||||
style={{
|
||||
alignItems: 'center',
|
||||
cursor: 'pointer',
|
||||
@@ -31,6 +32,7 @@ const Details: React.FC<{}> = () => {
|
||||
}}
|
||||
>
|
||||
<input
|
||||
id="custom-checkbox-button"
|
||||
type="checkbox"
|
||||
name="option"
|
||||
value={value}
|
||||
|
Reference in New Issue
Block a user