Skip to content

Commit

Permalink
Fixes #21
Browse files Browse the repository at this point in the history
  • Loading branch information
anubra266 committed Jul 10, 2021
1 parent 78477eb commit 10c67e8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions example/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ const App = () => {
</>
)}
</AutoComplete>


{/* <Button
zIndex="tooltip"
mt="150px"
Expand Down
11 changes: 9 additions & 2 deletions src/auto-complete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { closeList } from './helpers/list';

export const AutoCompleteBody = forwardRef<AutoComplete, 'div'>(
(props, ref) => {
const { children, onChange, ...rest } = props;
const { children, onChange, sx, ...rest } = props;

const { state, dispatch } = useAutoCompleteContext();

Expand Down Expand Up @@ -53,7 +53,14 @@ export const AutoCompleteBody = forwardRef<AutoComplete, 'div'>(
isOpen={isOpen}
onClose={onClose}
>
<Box ref={ref} {...rest}>
<Box
ref={ref}
sx={{
'.chakra-popover__popper': { position: 'unset !important' },
...sx,
}}
{...rest}
>
{runIfFn(children, childProps)}
</Box>
</Popover>
Expand Down

1 comment on commit 10c67e8

@karimcambridge
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sick!

Please sign in to comment.