remove unnecessary tabindex

pull/2717/head
Tuğçe Küçükoğlu 2022-06-29 16:26:48 +03:00
parent 74093760d5
commit 0ef32fccb3
4 changed files with 1 additions and 21 deletions

View File

@ -17,12 +17,6 @@ const InputSwitchProps = [
default: "null",
description: "Inline of the component."
},
{
name: "tabindex",
type: "number",
default: "null",
description: "Index of the element in tabbing order."
},
{
name: "trueValue",
type: "any",

View File

@ -13,10 +13,6 @@ export interface InputSwitchProps {
* Style class of the component input field.
*/
style?: any;
/**
* Index of the element in tabbing order.
*/
tabindex?: number;
/**
* Value in checked state.
*/

View File

@ -1,7 +1,7 @@
<template>
<div :class="containerClass" @click="onClick($event)" :style="style" role="checkbox" :aria-checked="checked">
<div class="p-hidden-accessible">
<input ref="input" type="checkbox" :checked="checked" v-bind="$attrs" role="switch" :tabindex="tabindex" :aria-checked="checked"
<input ref="input" type="checkbox" :checked="checked" v-bind="$attrs" role="switch" :aria-checked="checked"
@focus="onFocus($event)" @blur="onBlur($event)">
</div>
<span class="p-inputswitch-slider"></span>
@ -20,10 +20,6 @@ export default {
},
class: null,
style: null,
tabindex: {
type: Number,
default: null
},
trueValue: {
type: null,
default: true

View File

@ -74,12 +74,6 @@ export default {
<td>string</td>
<td>null</td>
<td>Inline style of the component.</td>
</tr>
<tr>
<td>tabindex</td>
<td>number</td>
<td>null</td>
<td>Index of the element in tabbing order.</td>
</tr>
<tr>
<td>trueValue</td>