Skip to content

Commit 149ed3d

Browse files
chore(docs): Update docs to suggest using preventOverflow (#12012)
Alternatively, we can also set preventOverflow to true by default if left or right are used, but it sounds like the team wants to avoid setting defaults like that.
1 parent cac6127 commit 149ed3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-core/src/helpers/Popper/Popper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const getOpacityTransition = (animationDuration: number) =>
5151
export interface PopperOptions {
5252
/** popper direction */
5353
direction?: 'up' | 'down';
54-
/** popper position */
54+
/** Horizontal position of the popper. Use the additional prop preventOverflow if seeing clipping. */
5555
position?: 'right' | 'left' | 'center' | 'start' | 'end';
5656
/** Instead of direction and position can set the placement of the popper */
5757
placement?: Placement;

0 commit comments

Comments
 (0)