mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [cascader] safeguard arrow modifier access in popper options (#20732)
fix(components): [cascader] safeguard arrow modifier
This commit is contained in:
@@ -252,7 +252,9 @@ const popperOptions: Partial<Options> = {
|
||||
fn: ({ state }) => {
|
||||
const { modifiersData, placement } = state as any
|
||||
if (['right', 'left', 'bottom', 'top'].includes(placement)) return
|
||||
modifiersData.arrow.x = 35
|
||||
if (modifiersData.arrow) {
|
||||
modifiersData.arrow.x = 35
|
||||
}
|
||||
},
|
||||
requires: ['arrow'],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user