remove unnecessary tabindex
parent
74093760d5
commit
0ef32fccb3
|
@ -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",
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue