We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7dcef39 commit f14b538Copy full SHA for f14b538
1 file changed
src/pages/components/layout/MainLayout.tsx
@@ -295,14 +295,18 @@ const MainLayout: React.FC<{
295
}}
296
locale={arcoLocale(i18n.language)}
297
componentConfig={{
298
- Popconfirm: {
+ Select: {
299
getPopupContainer: (node) => {
300
- return node.parentNode as Element;
+ return node;
301
},
302
303
304
getPopupContainer={(node) => {
305
- return node;
+ let p = node.parentNode as Element;
306
+ p = (p.closest("button")?.parentNode as Element) || p; // 確保 ancestor 沒有 button 元素
307
+ p = (p.closest("span")?.parentNode as Element) || p; // 確保 ancestor 沒有 span 元素
308
+ p = (p.closest("aside")?.parentNode as Element) || p; // 確保 ancestor 沒有 aside 元素
309
+ return p;
310
311
>
312
{contextHolder}
0 commit comments