Skip to content

Commit

Permalink
shell: add missing id for FormSelect
Browse files Browse the repository at this point in the history
The FormGroup has a fieldId but we never set the id on the FormSelect.
  • Loading branch information
jelly committed Jul 5, 2023
1 parent 8271908 commit 49c3c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/shell/superuser.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ const UnlockDialog = ({ proxy, host }) => {
<Form isHorizontal>
<FormGroup fieldId="switch-to-admin-access-bridge-select"
label={_("Method")}>
<FormSelect value={method} onChange={(_, method) => setMethod(method)} isDisabled={busy}>
<FormSelect id="switch-to-admin-access-bridge-select" value={method} onChange={(_, method) => setMethod(method)} isDisabled={busy}>
{ methods.map(m => <FormSelectOption value={m} key={m}
label={_(proxy.Methods[m].v.label.v)} />) }
</FormSelect>
Expand Down

0 comments on commit 49c3c5f

Please sign in to comment.