Fixed #3900 - Password: Incorrect onClick property as scope for custom icons

pull/3913/head
Tuğçe Küçükoğlu 2023-04-26 13:54:40 +03:00
parent f0765a001e
commit 03d419e6c2
1 changed files with 2 additions and 2 deletions

View File

@ -21,10 +21,10 @@
@invalid="onInvalid" @invalid="onInvalid"
v-bind="inputProps" v-bind="inputProps"
/> />
<slot v-if="toggleMask && unmasked" name="hideicon" :onClick="() => onMaskToggle"> <slot v-if="toggleMask && unmasked" name="hideicon" :onClick="onMaskToggle">
<component :is="hideIcon ? 'i' : 'EyeSlashIcon'" :class="hideIcon" @click="onMaskToggle" /> <component :is="hideIcon ? 'i' : 'EyeSlashIcon'" :class="hideIcon" @click="onMaskToggle" />
</slot> </slot>
<slot v-if="toggleMask && !unmasked" name="showicon" :onClick="() => onMaskToggle"> <slot v-if="toggleMask && !unmasked" name="showicon" :onClick="onMaskToggle">
<component :is="showIcon ? 'i' : 'EyeIcon'" :class="showIcon" @click="onMaskToggle" /> <component :is="showIcon ? 'i' : 'EyeIcon'" :class="showIcon" @click="onMaskToggle" />
</slot> </slot>
<span class="p-hidden-accessible" aria-live="polite"> <span class="p-hidden-accessible" aria-live="polite">