Update inheritAttrs as true

pull/2760/head
Tuğçe Küçükoğlu 2022-07-05 15:23:51 +03:00
parent 643fa92be3
commit 03962b3224
2 changed files with 2 additions and 4 deletions

View File

@ -1,11 +1,10 @@
<template>
<input :class="['p-inputtext p-component', {'p-filled': filled}]" :value="modelValue" @input="onInput" v-bind="$attrs" />
<input :class="['p-inputtext p-component', {'p-filled': filled}]" :value="modelValue" @input="onInput"/>
</template>
<script>
export default {
name: 'InputText',
inheritAttrs: false,
emits: ['update:modelValue'],
props: {
modelValue: null

View File

@ -1,11 +1,10 @@
<template>
<textarea :class="['p-inputtextarea p-inputtext p-component', {'p-filled': filled, 'p-inputtextarea-resizable ': autoResize}]" v-bind="$attrs" :value="modelValue" @input="onInput"></textarea>
<textarea :class="['p-inputtextarea p-inputtext p-component', {'p-filled': filled, 'p-inputtextarea-resizable ': autoResize}]" :value="modelValue" @input="onInput"></textarea>
</template>
<script>
export default {
name: 'Textarea',
inheritAttrs: false,
emits: ['update:modelValue'],
props: {
modelValue: null,