Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit c359fb1

Browse files
committed
add missing VirtualElement type for usePopper hook in TypeScript
1 parent 42df6f2 commit c359fb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typings/react-popper.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class Popper<Modifiers> extends React.Component<
6666
> {}
6767

6868
export function usePopper(
69-
referenceElement?: Element | null,
69+
referenceElement?: Element | PopperJS.VirtualElement | null,
7070
popperElement?: HTMLElement | null,
7171
options?: Partial<PopperJS.Options> & {
7272
createPopper?: typeof PopperJS.createPopper;

0 commit comments

Comments
 (0)