Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Jul 10, 2024
1 parent 108b3df commit ca14496
Show file tree
Hide file tree
Showing 5 changed files with 126 additions and 349 deletions.
13 changes: 4 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,13 @@
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@react-bootstrap/eslint-config": "^2.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"@testing-library/dom": "^10.3.1",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.2",
"@types/classnames": "^2.3.1",
"@types/mocha": "^8.2.3",
"@types/react": "^17.0.47",
"@types/react-dom": "^17.0.17",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/react-transition-group": "^4.4.4",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
Expand All @@ -121,23 +120,19 @@
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-mocha": "^8.1.0",
"eslint-plugin-prettier": "^3.4.1",
"eslint-plugin-react": "^7.30.0",
"eslint-plugin-react-hooks": "^4.6.0",
"gh-pages": "^3.1.0",
"hookem": "^1.0.9",
"lint-staged": "^10.5.4",
"mocha": "^8.3.2",
"playwright": "^1.45.1",
"prettier": "^2.7.1",
"process": "^0.11.10",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-transition-group": "^4.4.1",
"rimraf": "^3.0.2",
"rollup": "^3.10.1",
"stream-browserify": "^3.0.0",
"rollup": "^4.18.1",
"typescript": "^4.7.4",
"vitest": "^2.0.2"
},
Expand Down
2 changes: 1 addition & 1 deletion src/DropdownToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function useDropdownToggle(): [
menuElement,
} = useContext(DropdownContext) || {};
const handleClick = useCallback(
(e) => {
(e: Event | React.SyntheticEvent<Element, Event>) => {
toggle(!show, e);
},
[show, toggle],
Expand Down
4 changes: 3 additions & 1 deletion src/Overlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ const Overlay = React.forwardRef<HTMLElement, OverlayProps>(
onEntered,
});

return container ? ReactDOM.createPortal(child, container) : null;
return (
<>{container ? ReactDOM.createPortal(<>{child}</>, container) : null}</>
);
},
);

Expand Down
2 changes: 1 addition & 1 deletion src/useClickOutside.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function useClickOutside(
const waitingForTrigger = useRef(false);

const handleMouseCapture = useCallback(
(e) => {
(e: any) => {
const currentTarget = getRefTarget(ref);

warning(
Expand Down
Loading

0 comments on commit ca14496

Please sign in to comment.