Skip to content

Commit

Permalink
Added disabled prop to the Select component to control its disable state
Browse files Browse the repository at this point in the history
  • Loading branch information
jeppekroghitk committed Nov 11, 2024
1 parent ea43f40 commit bb90942
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/util/forms/select.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ function Select({
isRequired = false,
allowNull = true,
tooltip = null,
disabled = null,
}) {
const { t } = useTranslation("common");
const textOnError = errorText || t("select.validation-text");
Expand Down Expand Up @@ -83,6 +84,7 @@ function Select({
name={name}
value={value}
onChange={onChange}
disabled={disabled}
>
{allowNull && (
<option disabled value="">
Expand Down

0 comments on commit bb90942

Please sign in to comment.