Skip to content

Commit

Permalink
Update carbon/react version to v1.49.0 (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmale committed Jun 19, 2024
1 parent 496e43d commit 4ac3a45
Show file tree
Hide file tree
Showing 3 changed files with 318 additions and 13 deletions.
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"access": "public"
},
"dependencies": {
"@carbon/react": ">1.47.0 <1.50.0",
"ace-builds": "^1.33.2",
"classnames": "^2.5.1",
"dayjs": "1.x",
Expand All @@ -41,7 +42,6 @@
"yup": "^1.4.0"
},
"peerDependencies": {
"@carbon/react": "1.x",
"@openmrs/esm-framework": "5.x",
"@openmrs/esm-patient-common-lib": "8.x",
"dayjs": "1.x",
Expand All @@ -52,7 +52,6 @@
"swr": "2.x"
},
"devDependencies": {
"@carbon/react": "^1.37.0",
"@openmrs/esm-framework": "next",
"@openmrs/esm-patient-common-lib": "next",
"@swc/cli": "^0.1.65",
Expand Down Expand Up @@ -107,8 +106,5 @@
"*.{ts,tsx}": "eslint --cache --fix --max-warnings 0",
"*.{css,scss,ts,tsx}": "prettier --write --list-different"
},
"resolutions": {
"@carbon/react": "1.37.0"
},
"packageManager": "yarn@4.2.2"
}
2 changes: 1 addition & 1 deletion src/components/inputs/select/dropdown.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const Dropdown: React.FC<FormFieldProps> = ({ question, onChange, handler, previ
.filter((answer) => !answer.isHidden)
.map((item) => item.value || item.concept)}
itemToString={itemToString}
selectedItem={field.value}
selectedItem={field.value || null}
onChange={({ selectedItem }) => handleChange(selectedItem)}
disabled={question.isDisabled}
readOnly={question.readonly}
Expand Down
Loading

0 comments on commit 4ac3a45

Please sign in to comment.