From 40f07479e1250914075eec120dbf4e3db962284c Mon Sep 17 00:00:00 2001 From: sadeghbarati Date: Mon, 8 Jan 2024 10:03:16 +0330 Subject: [PATCH] fix: change attribute inheritance element --- .../src/lib/registry/default/ui/carousel/CarouselContent.vue | 5 +++++ .../lib/registry/new-york/ui/carousel/CarouselContent.vue | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/apps/www/src/lib/registry/default/ui/carousel/CarouselContent.vue b/apps/www/src/lib/registry/default/ui/carousel/CarouselContent.vue index 6e87fdeb..f432d015 100644 --- a/apps/www/src/lib/registry/default/ui/carousel/CarouselContent.vue +++ b/apps/www/src/lib/registry/default/ui/carousel/CarouselContent.vue @@ -3,6 +3,10 @@ import type { WithClassAsProps } from './interface' import { useCarousel } from './useCarousel' import { cn } from '@/lib/utils' +defineOptions({ + inheritAttrs: false, +}) + const props = defineProps() const { carouselRef, orientation } = useCarousel() @@ -17,6 +21,7 @@ const { carouselRef, orientation } = useCarousel() orientation === 'horizontal' ? '-ml-4' : '-mt-4 flex-col', props.class, )" + v-bind="$attrs" > diff --git a/apps/www/src/lib/registry/new-york/ui/carousel/CarouselContent.vue b/apps/www/src/lib/registry/new-york/ui/carousel/CarouselContent.vue index 06f82555..87f0e308 100644 --- a/apps/www/src/lib/registry/new-york/ui/carousel/CarouselContent.vue +++ b/apps/www/src/lib/registry/new-york/ui/carousel/CarouselContent.vue @@ -3,6 +3,10 @@ import { useCarousel } from './useCarousel' import type { WithClassAsProps } from './interface' import { cn } from '@/lib/utils' +defineOptions({ + inheritAttrs: false, +}) + const props = defineProps() const { carouselRef, orientation } = useCarousel() @@ -17,6 +21,7 @@ const { carouselRef, orientation } = useCarousel() orientation === 'horizontal' ? '-ml-4' : '-mt-4 flex-col', props.class, )" + v-bind="$attrs" >