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> <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> </template>
<script> <script>
export default { export default {
name: 'InputText', name: 'InputText',
inheritAttrs: false,
emits: ['update:modelValue'], emits: ['update:modelValue'],
props: { props: {
modelValue: null modelValue: null

View File

@ -1,11 +1,10 @@
<template> <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> </template>
<script> <script>
export default { export default {
name: 'Textarea', name: 'Textarea',
inheritAttrs: false,
emits: ['update:modelValue'], emits: ['update:modelValue'],
props: { props: {
modelValue: null, modelValue: null,