Skip to content

Commit

Permalink
fixed align and padding erroneous requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkatz committed Oct 20, 2023
1 parent d72f452 commit 41fdb4c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-tiny-popover",
"version": "8.0.2",
"version": "8.0.3",
"description": "A simple and highly customizable popover react higher order component with no other dependencies!",
"keywords": [
"react",
Expand Down
4 changes: 2 additions & 2 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ export type ArrowContainerProps = UseArrowContainerProps & {

export type BasePopoverProps = {
isOpen: boolean;
align: PopoverAlign;
padding: number;
align?: PopoverAlign;
padding?: number;
reposition?: boolean;
parentElement?: HTMLElement;
boundaryElement?: HTMLElement;
Expand Down
4 changes: 2 additions & 2 deletions src/usePopover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export const usePopover = ({
parentElement,
transform,
transformMode,
align,
padding,
align = 'center',
padding = 0,
reposition,
boundaryInset,
boundaryElement,
Expand Down

0 comments on commit 41fdb4c

Please sign in to comment.