Skip to content

Commit 13e2d05

Browse files
fix: appendTo implementation defect
1 parent 77deab1 commit 13e2d05

4 files changed

Lines changed: 3 additions & 6 deletions

File tree

packages/@primereact/headless/src/inputtags/useInputTags.props.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export const defaultProps: useInputTagsProps = {
2121
optionGroupChildren: undefined,
2222
delay: 300,
2323
minLength: 1,
24-
appendTo: 'body',
2524
closeOnEscape: false,
2625
autoFocus: false,
2726
trapped: false,

packages/@primereact/headless/src/popover/usePopover.props.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@ export const defaultProps: usePopoverProps = {
66
trapped: false,
77
autoFocus: true,
88
closeOnEscape: true,
9-
onOpenChange: undefined,
10-
appendTo: 'body'
9+
onOpenChange: undefined
1110
};

packages/primereact/src/autocomplete/portal/AutoCompletePortal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ export const AutoCompletePortal = withComponent({
2525
ptmi('root')
2626
);
2727

28-
return <Portal instance={instance} attrs={containerProps} children={props.children} appendTo={autocomplete?.props.appendTo} />;
28+
return <Portal instance={instance} attrs={containerProps} children={props.children} />;
2929
}
3030
});

packages/primereact/src/popover/portal/PopoverPortal.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ export const PopoverPortal = withComponent({
1919

2020
const containerProps = mergeProps(
2121
{
22-
className: popover?.cx('portal'),
23-
appendTo: popover?.props.appendTo
22+
className: popover?.cx('portal')
2423
},
2524
popover?.ptm('portal'),
2625
ptmi('root')

0 commit comments

Comments
 (0)