Fixed #4143 - Password: id props is passed to container

pull/4452/head
Tuğçe Küçükoğlu 2023-08-14 14:50:50 +03:00
parent b37b1546f6
commit 45caf7d78e
2 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<template>
<div :class="containerClass" :style="styles">
<PInputText ref="input" :class="inputFieldClass" :style="inputStyle" :type="inputType" :value="d_value" v-bind="$attrs" v-on="listeners" />
<PInputText ref="input" :id="inputId" :class="inputFieldClass" :style="inputStyle" :type="inputType" :value="d_value" v-bind="$attrs" v-on="listeners" />
<i v-if="toggleMask" :class="toggleIconClass" @click="onMaskToggle" />
<transition name="p-connected-overlay" @enter="onOverlayEnter" @leave="onOverlayLeave">
<div ref="overlayRef" class="p-password-panel p-component" v-if="overlayVisible">
@ -71,6 +71,7 @@ export default {
},
inputClass: null,
inputStyle: null,
inputId: null,
styles: null,
className: null
},

View File

@ -131,6 +131,12 @@ import Password from 'primevue/password';
<td>null</td>
<td>Id of the element or "body" for document where the overlay should be appended to.</td>
</tr>
<tr>
<td>inputId</td>
<td>string</td>
<td>null</td>
<td>Identifier of the underlying input element.</td>
</tr>
<tr>
<td>inputStyle</td>
<td>any</td>