mirror of
https://github.com/element-plus/element-plus.git
synced 2025-03-01 15:35:51 +08:00
fix(popper): fix popper modifier overriding issue (#399)
This commit is contained in:
parent
cc2ab5c417
commit
20458b7779
@ -19,12 +19,13 @@ export default function usePopperOptions(props: IUsePopperProps, state: IUsePopp
|
||||
return computed(() => {
|
||||
return {
|
||||
placement: props.placement,
|
||||
...props.popperOptions,
|
||||
// Avoiding overriding modifiers.
|
||||
modifiers: buildModifiers({
|
||||
arrow: state.arrow.value,
|
||||
arrowOffset: props.arrowOffset,
|
||||
offset: props.offset,
|
||||
}, props.popperOptions?.modifiers),
|
||||
...props.popperOptions,
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user