Skip to content

Commit

Permalink
Fix domainDropdown (#1742)
Browse files Browse the repository at this point in the history
  • Loading branch information
MiraGeowerkstatt authored Dec 10, 2024
2 parents 03336ca + 41bdd9f commit 0a9e20a
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,12 @@ class DomainDropdown extends React.Component {
),
})),
);
if (readOnly) {
let selectedOption = options.find(option => option.value === selected);
return <Form.Input fluid readOnly value={selectedOption?.text || ""} />;
}
return (
<Form.Select
data-cy="domain-dropdown"
fluid
readOnly={readOnly}
style={{ pointerEvents: readOnly ? "none" : "auto" }}
multiple={multiple}
onChange={this.handleChange}
options={options}
Expand Down

0 comments on commit 0a9e20a

Please sign in to comment.