remove unnecessary tabindex
parent
b241870e2f
commit
07ab17ff6c
|
@ -17,12 +17,6 @@ const CheckboxProps = [
|
||||||
default: "false",
|
default: "false",
|
||||||
description: "Allows to select a boolean value instead of multiple values."
|
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",
|
name: "class",
|
||||||
type: "string",
|
type: "string",
|
||||||
|
|
|
@ -13,10 +13,6 @@ export interface CheckboxProps {
|
||||||
* Allows to select a boolean value instead of multiple values.
|
* Allows to select a boolean value instead of multiple values.
|
||||||
*/
|
*/
|
||||||
binary?: boolean;
|
binary?: boolean;
|
||||||
/**
|
|
||||||
* Index of the element in tabbing order.
|
|
||||||
*/
|
|
||||||
tabindex?: number;
|
|
||||||
/**
|
/**
|
||||||
* Style class of the component input field.
|
* Style class of the component input field.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="containerClass" @click="onClick($event)" :style="style">
|
<div :class="containerClass" @click="onClick($event)" :style="style">
|
||||||
<div class="p-hidden-accessible">
|
<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>
|
||||||
<div ref="box" :class="['p-checkbox-box', {'p-highlight': checked, 'p-disabled': $attrs.disabled, 'p-focus': focused}]">
|
<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>
|
<span :class="['p-checkbox-icon', {'pi pi-check': checked}]"></span>
|
||||||
|
@ -22,10 +22,6 @@ export default {
|
||||||
binary: Boolean,
|
binary: Boolean,
|
||||||
class: null,
|
class: null,
|
||||||
style: null,
|
style: null,
|
||||||
tabindex: {
|
|
||||||
type: Number,
|
|
||||||
default: null
|
|
||||||
},
|
|
||||||
trueValue: {
|
trueValue: {
|
||||||
type: null,
|
type: null,
|
||||||
default: true
|
default: true
|
||||||
|
|
|
@ -75,12 +75,6 @@ export default {
|
||||||
<td>false</td>
|
<td>false</td>
|
||||||
<td>Allows to select a boolean value instead of multiple values.</td>
|
<td>Allows to select a boolean value instead of multiple values.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<td>tabindex</td>
|
|
||||||
<td>number</td>
|
|
||||||
<td>null</td>
|
|
||||||
<td>Index of the element in tabbing order.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>style</td>
|
<td>style</td>
|
||||||
<td>any</td>
|
<td>any</td>
|
||||||
|
|
Loading…
Reference in New Issue