Skip to content

Commit

Permalink
perf(table): fix style (#1483)
Browse files Browse the repository at this point in the history
* perf(table): fix style

* fix(popover): fix error

Co-authored-by: maxin <maxin@growingio.com>
  • Loading branch information
nnmax and maxin committed Nov 18, 2021
1 parent 23210a7 commit 01af759
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/popover/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const Popover = (props: PopoverProps) => {
const onDocumentClick = useCallback(
(event: MouseEvent) => {
const { target } = event;
if (!referenceElement.current?.contains(target as Node) && !popperElement.current?.contains(target as Node)) {
if (!referenceElement?.current?.contains(target as Node) && !popperElement?.current?.contains(target as Node)) {
updateVisible(false);
}
},
Expand Down
2 changes: 2 additions & 0 deletions src/table/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,11 @@
flex-direction: column;
}
&-up {
line-height: 0;
transform: translateY(2px);
}
&-down {
line-height: 0;
transform: translateY(-2px);
}
&-up.active,
Expand Down

1 comment on commit 01af759

@vercel
Copy link

@vercel vercel bot commented on 01af759 Nov 18, 2021

Choose a reason for hiding this comment

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

Please sign in to comment.