Skip to content
Snippets Groups Projects
Commit 70e332ec authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

fix: don’t pass-down arbitrary slot attributes from PermissionGuard

parent 8c11caf2
No related branches found
No related tags found
No related merge requests found
<template> <template>
<APermissionGuard <APermissionGuard
v-slot="permissionGuardAttrs" v-slot="{ disabled }"
:show-permissions="showPermissions" :show-permissions="showPermissions"
:edit-permissions="editPermissions" :edit-permissions="editPermissions"
> >
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
</div> </div>
<div class="tw-flex tw-flex-col"> <div class="tw-flex tw-flex-col">
<div class="tw-grid tw-order-first"> <div class="tw-grid tw-order-first">
<slot v-bind="{ ...controlAttributes, ...permissionGuardAttrs }" /> <slot v-bind="{ ...controlAttributes, disabled }" />
<slot name="iconLeft" :class="[iconClasses, 'tw-ml-2']" role="presentation" /> <slot name="iconLeft" :class="[iconClasses, 'tw-ml-2']" role="presentation" />
<slot name="iconRight" :class="[iconClasses, 'tw-mr-2']" role="presentation" /> <slot name="iconRight" :class="[iconClasses, 'tw-mr-2']" role="presentation" />
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment