Skip to content

Commit

Permalink
🔧 Fixed a problem with the DropDown button
Browse files Browse the repository at this point in the history
The dropdown button would stop working after a modal was opened. After a 🌦 day of pulling my 🦱 out trying to figure out what had happened. Finally found this: react-bootstrap/react-bootstrap#5409
Had to thunk React back down to 16.14.0
  • Loading branch information
RyanNerd committed Oct 25, 2020
1 parent 11a41f5 commit 474d542
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"frak": "^3.1.2",
"lodash": ">=4.17.13",
"lodash.template": ">=4.5.0",
"react": "^17.0.1",
"react": "^16.14.0",
"react-bootstrap": "^1.4.0",
"react-dom": "^17.0.1",
"react-dom": "^16.14.0",
"react-scripts": "^3.4.4",
"reactn": "^2.2.7",
"typescript": "^4.0.3"
Expand Down
1 change: 0 additions & 1 deletion src/components/ListGroups/DrugDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ interface IProps {
const DrugDropdown = (props: IProps): JSX.Element | null => {
const {medicineList, drugId} = props;

console.log('medicineList', medicineList);
// Do not render unless we have the required props.
if (!medicineList || medicineList.length === 0 || !drugId) {
return null;
Expand Down

0 comments on commit 474d542

Please sign in to comment.