mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-24 11:05:17 +08:00
fix(components): popper content fallback placements (#5119)
- Fix popper content don't fallback to correct placement
This commit is contained in:
parent
a6ef40d1de
commit
11752052dc
@ -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 ?? [],
|
||||
},
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user