Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
feat(usePopover): Expose forceUpdate method
Browse files Browse the repository at this point in the history
  • Loading branch information
diondiondion committed Jul 8, 2020
1 parent 28ecc6f commit fa3e6ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/usePopover/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function usePopover({
]
);

const {styles, state, attributes, update} = usePopper(
const {styles, state, attributes, update, forceUpdate} = usePopper(
referenceElement,
popperElement,
{
Expand Down Expand Up @@ -79,6 +79,7 @@ function usePopover({
},
arrow,
update,
forceUpdate,
};
}

Expand Down

0 comments on commit fa3e6ae

Please sign in to comment.