anonymous value fixed
This commit is contained in:
parent
dac51ed4a4
commit
a60974485f
@ -11,6 +11,7 @@ export const Checkbox = React.forwardRef(
|
||||
value,
|
||||
placeholder,
|
||||
name,
|
||||
checked,
|
||||
getRef,
|
||||
label,
|
||||
onClick,
|
||||
@ -38,6 +39,7 @@ export const Checkbox = React.forwardRef(
|
||||
onChange={onChange}
|
||||
ref={checkboxRef}
|
||||
className="sr-only"
|
||||
checked={checked}
|
||||
/>
|
||||
<div className="toggle-bg bg-black h-6 w-11 rounded-full"></div>
|
||||
<span className="ml-3 text-white text-sm font-medium">
|
||||
|
||||
@ -142,6 +142,7 @@ const Create = (props) => {
|
||||
id='anon'
|
||||
label="Hide voters names (Anonymous voting)"
|
||||
onChange={handleAnonymous}
|
||||
checked={formData.anonymous}
|
||||
/>
|
||||
</div>
|
||||
<div className="mt-2">
|
||||
@ -153,6 +154,7 @@ const Create = (props) => {
|
||||
/>
|
||||
</div>
|
||||
</form>
|
||||
{JSON.stringify(formData)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user