Skip to content

Commit

Permalink
feat: Add required fields for question and checklist options (#2700)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjon3s authored Jan 25, 2024
1 parent ecf5970 commit be22b62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion editor.planx.uk/src/@planx/components/Checklist/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const OptionEditor: React.FC<{
) : null}
<InputRowItem width="50%">
<Input
// required
required
format="bold"
value={props.value.data.text || ""}
onChange={(ev) => {
Expand Down Expand Up @@ -155,6 +155,7 @@ const Options: React.FC<{ formik: FormikHookReturn }> = ({ formik }) => {
<Box display="flex" pb={1}>
<InputRow>
<Input
required
format="bold"
name={`groupedOptions[${groupIndex}].title`}
value={groupedOption.title}
Expand Down
2 changes: 1 addition & 1 deletion editor.planx.uk/src/@planx/components/Question/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const OptionEditor: React.FC<{
)}
<InputRowItem width="100%">
<Input
// required
required
format="bold"
value={props.value.data.text || ""}
onChange={(ev) => {
Expand Down

0 comments on commit be22b62

Please sign in to comment.