diff --git a/packages/components/popper/src/utils.ts b/packages/components/popper/src/utils.ts index 1730f78b1d..20d723cc8d 100644 --- a/packages/components/popper/src/utils.ts +++ b/packages/components/popper/src/utils.ts @@ -39,7 +39,7 @@ export const unwrapMeasurableEl = ( } function genModifiers(options: UsePopperCoreConfigProps) { - const { offset, gpuAcceleration } = options + const { offset, gpuAcceleration, fallbackPlacements } = options return [ { name: 'offset', @@ -62,7 +62,7 @@ function genModifiers(options: UsePopperCoreConfigProps) { name: 'flip', options: { padding: 5, - fallbackPlacements: [], + fallbackPlacements: fallbackPlacements ?? [], }, }, {