We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In your example repo we don't need to pass anything to getPopupContainer
but the type file says getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement; What exactly should we pass as triggerNode?
getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
triggerNode
Not sure, maybe getPopupContainer?: () => HTMLElement;
getPopupContainer?: () => HTMLElement;
The type should be the same as in RcSelect where getPopupContainer is typed as React.ReactNode | (() => React.ReactNode);
RcSelect
getPopupContainer
React.ReactNode | (() => React.ReactNode);
The text was updated successfully, but these errors were encountered:
You don't have to pass argument to getPopupContainer, the definite works fine: https://codesandbox.io/s/keen-davinci-3o1fu
Sorry, something went wrong.
@afc163 Shouldn't the triggerNode be optional then? (triggerNode?: HTMLElement) => HTMLElement ?
(triggerNode?: HTMLElement) => HTMLElement
chenshuai2144
No branches or pull requests
Reproduction link
Steps to reproduce
In your example repo we don't need to pass anything to getPopupContainer
but the type file says
getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
What exactly should we pass as
triggerNode
?What is expected?
Not sure, maybe
getPopupContainer?: () => HTMLElement;
The type should be the same as in
RcSelect
wheregetPopupContainer
is typed asReact.ReactNode | (() => React.ReactNode);
What is actually happening?
The text was updated successfully, but these errors were encountered: