remove unnecessary tabindex
parent
74093760d5
commit
0ef32fccb3
|
@ -17,12 +17,6 @@ const InputSwitchProps = [
|
||||||
default: "null",
|
default: "null",
|
||||||
description: "Inline of the component."
|
description: "Inline of the component."
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: "tabindex",
|
|
||||||
type: "number",
|
|
||||||
default: "null",
|
|
||||||
description: "Index of the element in tabbing order."
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: "trueValue",
|
name: "trueValue",
|
||||||
type: "any",
|
type: "any",
|
||||||
|
|
|
@ -13,10 +13,6 @@ export interface InputSwitchProps {
|
||||||
* Style class of the component input field.
|
* Style class of the component input field.
|
||||||
*/
|
*/
|
||||||
style?: any;
|
style?: any;
|
||||||
/**
|
|
||||||
* Index of the element in tabbing order.
|
|
||||||
*/
|
|
||||||
tabindex?: number;
|
|
||||||
/**
|
/**
|
||||||
* Value in checked state.
|
* Value in checked state.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="containerClass" @click="onClick($event)" :style="style" role="checkbox" :aria-checked="checked">
|
<div :class="containerClass" @click="onClick($event)" :style="style" role="checkbox" :aria-checked="checked">
|
||||||
<div class="p-hidden-accessible">
|
<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)">
|
@focus="onFocus($event)" @blur="onBlur($event)">
|
||||||
</div>
|
</div>
|
||||||
<span class="p-inputswitch-slider"></span>
|
<span class="p-inputswitch-slider"></span>
|
||||||
|
@ -20,10 +20,6 @@ export default {
|
||||||
},
|
},
|
||||||
class: null,
|
class: null,
|
||||||
style: null,
|
style: null,
|
||||||
tabindex: {
|
|
||||||
type: Number,
|
|
||||||
default: null
|
|
||||||
},
|
|
||||||
trueValue: {
|
trueValue: {
|
||||||
type: null,
|
type: null,
|
||||||
default: true
|
default: true
|
||||||
|
|
|
@ -74,12 +74,6 @@ export default {
|
||||||
<td>string</td>
|
<td>string</td>
|
||||||
<td>null</td>
|
<td>null</td>
|
||||||
<td>Inline style of the component.</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>
|
||||||
<tr>
|
<tr>
|
||||||
<td>trueValue</td>
|
<td>trueValue</td>
|
||||||
|
|
Loading…
Reference in New Issue