Hidden input renaming for PT

pull/3946/head
Tuğçe Küçükoğlu 2023-05-10 11:26:12 +03:00
parent 621b56acd9
commit 3c2e8c005c
2 changed files with 6 additions and 6 deletions

View File

@ -38,13 +38,13 @@ export interface CheckboxPassThroughOptions {
*/
icon?: CheckboxPassThroughOptionType;
/**
* Uses to pass attributes to the hidden accessible DOM element.
* Uses to pass attributes to the hidden input wrapper's DOM element.
*/
hiddenAccessible?: CheckboxPassThroughOptionType;
hiddenInputWrapper?: CheckboxPassThroughOptionType;
/**
* Uses to pass attributes to the input aria's DOM element.
* Uses to pass attributes to the hidden input's DOM element.
*/
inputAria?: CheckboxPassThroughOptionType;
hiddenInput?: CheckboxPassThroughOptionType;
}
/**

View File

@ -1,6 +1,6 @@
<template>
<div :class="containerClass" @click="onClick($event)" v-bind="ptm('root')">
<div class="p-hidden-accessible" v-bind="ptm('hiddenAccessible')">
<div class="p-hidden-accessible" v-bind="ptm('hiddenInputWrapper')">
<input
ref="input"
:id="inputId"
@ -16,7 +16,7 @@
:aria-label="ariaLabel"
@focus="onFocus($event)"
@blur="onBlur($event)"
v-bind="ptm('inputAria')"
v-bind="ptm('hiddenInput')"
/>
</div>
<div ref="box" :class="['p-checkbox-box', inputClass, { 'p-highlight': checked, 'p-disabled': disabled, 'p-focus': focused }]" :style="inputStyle" v-bind="{ ...inputProps, ...ptm('input') }">