mirror of
https://github.com/directus/directus.git
synced 2026-01-29 07:27:57 -05:00
Fix popper modifier validation error (#8382)
This commit is contained in:
committed by
GitHub
parent
a806dc373a
commit
f555eb80db
@@ -67,7 +67,7 @@ export function usePopper(
|
||||
}
|
||||
|
||||
function getModifiers(callback: (value?: unknown) => void = () => undefined) {
|
||||
const modifiers: Partial<Modifier<string, any>>[] = [
|
||||
const modifiers: Modifier<string, any>[] = [
|
||||
popperOffsets,
|
||||
{
|
||||
...offset,
|
||||
@@ -81,12 +81,6 @@ export function usePopper(
|
||||
padding: 8,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'arrow',
|
||||
options: {
|
||||
padding: 6,
|
||||
},
|
||||
},
|
||||
computeStyles,
|
||||
flip,
|
||||
eventListeners,
|
||||
@@ -111,7 +105,12 @@ export function usePopper(
|
||||
];
|
||||
|
||||
if (options.value.arrow === true) {
|
||||
modifiers.push(arrow);
|
||||
modifiers.push({
|
||||
...arrow,
|
||||
options: {
|
||||
padding: 6,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
if (options.value.attached === true) {
|
||||
|
||||
@@ -135,7 +135,7 @@ export default defineComponent({
|
||||
reference,
|
||||
popper,
|
||||
computed(() => ({
|
||||
placement: props.placement as Placement,
|
||||
placement: props.placement,
|
||||
attached: props.attached,
|
||||
arrow: props.showArrow,
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user