-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(Popover): Upgrade Popover to Antd5 #31973
Changes from all commits
be1d564
f88fa0e
e6cc1fe
636c1a1
3c99830
a69a8b0
584239b
2839455
74d9a30
40a2034
cabf53f
159a7fb
4677efa
18ef69e
ad18747
e70f6a4
491a643
67a7571
79988e4
dcad86c
b9efb43
ff37da8
701e4c2
a29d7e0
5531d39
2327045
7725436
4614417
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,9 +16,13 @@ | |
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
export type { PopoverProps } from 'antd/lib/popover'; | ||
export type { TooltipPlacement } from 'antd/lib/tooltip'; | ||
import { Popover as AntdPopover } from 'antd-v5'; | ||
import { PopoverProps as AntdPopoverProps } from 'antd-v5/lib/popover'; | ||
|
||
// Eventually Popover can be wrapped and customized in this file | ||
// for now we're just redirecting | ||
export { Popover as default } from './Popover'; | ||
export interface PopoverProps extends AntdPopoverProps { | ||
forceRender?: boolean; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is this for? I don't see There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was being used before, I just combined the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not sure this answers my question. If There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
} | ||
|
||
const Popover = (props: PopoverProps) => <AntdPopover {...props} />; | ||
|
||
export default Popover; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we add it to the dependency array?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I don't think so, I added this statement because of a visual bug that was happening in certain cases. And I think that we don't need to recalculate the size when popover is closed .