Fixed #651 - Password element does not inherit attributes

pull/682/head
Cagatay Civici 2020-11-25 13:52:41 +03:00
parent 8c0122cb9d
commit b7fcc15fa5
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<template> <template>
<input ref="input" type="password" :class="['p-inputtext p-component', {'p-filled': filled}]" :value="modelValue" <input ref="input" type="password" :class="['p-inputtext p-component', {'p-filled': filled}]" :value="modelValue"
@input="onInput" @focus="onFocus" @blur="onBlur" @keyup="onKeyUp" /> @input="onInput" @focus="onFocus" @blur="onBlur" @keyup="onKeyUp" v-bind="$attrs" />
<transition name="p-connected-overlay" @enter="onOverlayEnter" @leave="onOverlayLeave"> <transition name="p-connected-overlay" @enter="onOverlayEnter" @leave="onOverlayLeave">
<div :ref="overlayRef" class="p-password-panel p-component" v-if="overlayVisible"> <div :ref="overlayRef" class="p-password-panel p-component" v-if="overlayVisible">
<div class="p-password-meter" :style="{'background-position': meterPosition}"></div> <div class="p-password-meter" :style="{'background-position': meterPosition}"></div>
@ -17,6 +17,7 @@ import DomHandler from '../utils/DomHandler';
export default { export default {
emits: ['update:modelValue'], emits: ['update:modelValue'],
inheritAttrs: false,
props: { props: {
modelValue: String, modelValue: String,
promptLabel: { promptLabel: {