Skip to content

Commit

Permalink
feat: more exports
Browse files Browse the repository at this point in the history
  • Loading branch information
megheaiulian committed Dec 30, 2024
1 parent a70bee6 commit 1a3f030
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@
".": "./dist/index.js",
"./use-focus": "./dist/use-focus.js",
"./use-position": "./dist/use-position.js",
"./use-floating": "./dist/use-floating.js",
"./connectable": "./dist/connectable.js",
"./src/use-focus.js": "./dist/use-focus.js",
"./src/use-position.js": "./dist/use-position.js"
},
Expand Down
1 change: 1 addition & 0 deletions src/use-floating.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const useFloating = ({
}: UseFloating) => {
const [[reference, floating], setRefs] = useState<[Element?, Element?]>([]);
const [position, setPosition] = useState<ComputePositionReturn>();

useEffect(() => {
if (!reference || !(floating instanceof HTMLElement)) {
setPosition(undefined);
Expand Down

0 comments on commit 1a3f030

Please # to comment.