Skip to content

Commit

Permalink
fix: mark input fields in options as required
Browse files Browse the repository at this point in the history
  • Loading branch information
foray1010 committed Mar 3, 2023
1 parent 025e8cc commit 21664c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .size-limit.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
{
"path": "build/production/js/options.js",
"limit": "5.34 kB"
"limit": "5.37 kB"
},
{
"path": "build/production/js/popup.js",
Expand Down
3 changes: 3 additions & 0 deletions src/options/components/OptionForm/OptionItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export default function OptionItem(props: Props) {
maximum={props.maximum}
minimum={props.minimum}
name={props.name}
required
value={props.value}
onBlur={props.onBlur}
onChange={(evt) => {
Expand All @@ -93,6 +94,7 @@ export default function OptionItem(props: Props) {
<SelectString
choices={props.choices}
name={props.name}
required
value={props.value}
onBlur={props.onBlur}
onChange={(evt) => {
Expand All @@ -117,6 +119,7 @@ export default function OptionItem(props: Props) {
<InputSelect
choices={props.choices}
name={props.name}
required
value={props.value}
onBlur={(evt) => {
onChange(evt)
Expand Down

0 comments on commit 21664c5

Please sign in to comment.