From a8dd587971049fc927a207de83601226fee09411 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 6 Dec 2022 23:29:38 +0800 Subject: [PATCH] style: fix Popover width in rtl mode (#39311) close #39195 --- components/popover/style/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/popover/style/index.tsx b/components/popover/style/index.tsx index 6f5f250bc7..26d811b94f 100644 --- a/components/popover/style/index.tsx +++ b/components/popover/style/index.tsx @@ -36,7 +36,11 @@ const genBaseStyle: GenerateStyle = (token) => { ...resetComponent(token), position: 'absolute', top: 0, - insetInlineStart: 0, + // use `left` to fix https://github.com/ant-design/ant-design/issues/39195 + left: { + _skip_check_: true, + value: 0, + }, zIndex: zIndexPopup, fontWeight: 'normal', whiteSpace: 'normal',