remove unnecessary tabindex

pull/2718/head
Tuğçe Küçükoğlu 2022-06-29 16:38:41 +03:00
parent b241870e2f
commit 07ab17ff6c
4 changed files with 1 additions and 21 deletions

View File

@ -17,12 +17,6 @@ const CheckboxProps = [
default: "false",
description: "Allows to select a boolean value instead of multiple values."
},
{
name: "tabindex",
type: "number",
default: "null",
description: "Index of the element in tabbing order."
},
{
name: "class",
type: "string",

View File

@ -13,10 +13,6 @@ export interface CheckboxProps {
* Allows to select a boolean value instead of multiple values.
*/
binary?: boolean;
/**
* Index of the element in tabbing order.
*/
tabindex?: number;
/**
* Style class of the component input field.
*/

View File

@ -1,7 +1,7 @@
<template>
<div :class="containerClass" @click="onClick($event)" :style="style">
<div class="p-hidden-accessible">
<input ref="input" type="checkbox" :checked="checked" :value="value" v-bind="$attrs" :tabindex="tabindex" @focus="onFocus" @blur="onBlur">
<input ref="input" type="checkbox" :checked="checked" :value="value" v-bind="$attrs" @focus="onFocus" @blur="onBlur">
</div>
<div ref="box" :class="['p-checkbox-box', {'p-highlight': checked, 'p-disabled': $attrs.disabled, 'p-focus': focused}]">
<span :class="['p-checkbox-icon', {'pi pi-check': checked}]"></span>
@ -22,10 +22,6 @@ export default {
binary: Boolean,
class: null,
style: null,
tabindex: {
type: Number,
default: null
},
trueValue: {
type: null,
default: true

View File

@ -75,12 +75,6 @@ export default {
<td>false</td>
<td>Allows to select a boolean value instead of multiple values.</td>
</tr>
<tr>
<td>tabindex</td>
<td>number</td>
<td>null</td>
<td>Index of the element in tabbing order.</td>
</tr>
<tr>
<td>style</td>
<td>any</td>