Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 311cb08

Browse files
committed
fix(TextArea): make component root inherit root attributes, remove unused prop
1 parent d883b4a commit 311cb08

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/components/forms/text-area/TextArea.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script lang="ts" setup>
22
import { objectOmit } from '@vueuse/shared';
33
import { logicAnd, logicNot } from '@vueuse/math';
4+
import { getNonRootAttrs, getRootAttrs } from '@/utils/helpers';
45
import { type ContextColorsType } from '@/consts/colors';
56
import Icon, { default as RuiIcon } from '@/components/icons/Icon.vue';
67
import { default as RuiButton } from '@/components/buttons/button/Button.vue';
@@ -21,7 +22,6 @@ export interface Props {
2122
successMessages?: string | string[];
2223
hideDetails?: boolean;
2324
prependIcon?: RuiIcons;
24-
prependOuterIcon?: RuiIcons;
2525
appendIcon?: RuiIcons;
2626
readonly?: boolean;
2727
clearable?: boolean;
@@ -51,7 +51,6 @@ const props = withDefaults(defineProps<Props>(), {
5151
successMessages: () => [],
5252
hideDetails: false,
5353
prependIcon: undefined,
54-
prependOuterIcon: undefined,
5554
appendIcon: undefined,
5655
readonly: false,
5756
clearable: false,
@@ -194,7 +193,7 @@ onMounted(computeFieldHeight);
194193
</script>
195194

196195
<template>
197-
<div>
196+
<div v-bind="getRootAttrs(attrs)">
198197
<div
199198
:class="[
200199
css.wrapper,
@@ -242,7 +241,7 @@ onMounted(computeFieldHeight);
242241
:style="fieldStyles"
243242
:disabled="disabled"
244243
:readonly="readonly"
245-
v-bind="objectOmit(attrs, ['class'])"
244+
v-bind="getNonRootAttrs(attrs)"
246245
v-on="
247246
// eslint-disable-next-line vue/no-deprecated-dollar-listeners-api
248247
objectOmit($listeners, ['input'])

0 commit comments

Comments
 (0)