Skip to content
Snippets Groups Projects
Commit 713e69d6 authored by xaralis's avatar xaralis
Browse files

fix: radio input name hoisting

parent f98f99eb
No related branches found
No related tags found
No related merge requests found
...@@ -87,7 +87,7 @@ const AddAnnouncementForm = ({ className }) => { ...@@ -87,7 +87,7 @@ const AddAnnouncementForm = ({ className }) => {
<label> <label>
<input <input
type="radio" type="radio"
name="type" name="announcementType"
value="announcement" value="announcement"
defaultChecked defaultChecked
/> />
...@@ -97,7 +97,7 @@ const AddAnnouncementForm = ({ className }) => { ...@@ -97,7 +97,7 @@ const AddAnnouncementForm = ({ className }) => {
<div className="radio form-field__control"> <div className="radio form-field__control">
<label> <label>
<input type="radio" name="type" value="voting" /> <input type="radio" name="announcementType" value="voting" />
<span>Rozhodující hlasování</span> <span>Rozhodující hlasování</span>
</label> </label>
</div> </div>
......
...@@ -56,7 +56,7 @@ const AddPostForm = ({ className }) => { ...@@ -56,7 +56,7 @@ const AddPostForm = ({ className }) => {
<div className="form-field__wrapper"> <div className="form-field__wrapper">
<div className="radio form-field__control"> <div className="radio form-field__control">
<label> <label>
<input type="radio" name="type" value="post" defaultChecked /> <input type="radio" name="postType" value="post" defaultChecked />
<span> <span>
Přidat <strong>běžný příspěvek</strong> Přidat <strong>běžný příspěvek</strong>
</span> </span>
...@@ -65,7 +65,7 @@ const AddPostForm = ({ className }) => { ...@@ -65,7 +65,7 @@ const AddPostForm = ({ className }) => {
<div className="radio form-field__control"> <div className="radio form-field__control">
<label> <label>
<input type="radio" name="type" value="procedure-proposal" /> <input type="radio" name="postType" value="procedure-proposal" />
<span> <span>
Přidat <strong>návrh postupu</strong> Přidat <strong>návrh postupu</strong>
</span> </span>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment