From 785ccb57d28c0fb7584bf269ed987cec7b5b6b05 Mon Sep 17 00:00:00 2001 From: zkwolf Date: Fri, 6 Mar 2020 11:00:33 +0800 Subject: [PATCH] fix: mentions getPopupCotainer value --- components/mentions/index.jsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/components/mentions/index.jsx b/components/mentions/index.jsx index 4d88648502..8f170d3b0f 100644 --- a/components/mentions/index.jsx +++ b/components/mentions/index.jsx @@ -138,11 +138,7 @@ const Mentions = { }, render() { const { focused } = this.$data; - const { - getPrefixCls, - renderEmpty, - getPopupContainer: getContextPopupContainer, - } = this.configProvider; + const { getPrefixCls, renderEmpty } = this.configProvider; const { prefixCls: customizePrefixCls, disabled, @@ -164,7 +160,7 @@ const Mentions = { ...otherProps, disabled, filterOption: this.getFilterOption(), - getPopupContainer: getPopupContainer || getContextPopupContainer, + getPopupContainer: getPopupContainer, children: this.getOptions(), }, class: mergedClassName,