remove unnecessary tabindex

pull/2719/head
Tuğçe Küçükoğlu 2022-06-29 16:48:19 +03:00
parent 4b8162a341
commit 4884a5a825
3 changed files with 1 additions and 12 deletions

View File

@ -11,12 +11,6 @@ const RadioButtonProps = [
default: "null", default: "null",
description: "Value binding of the checkbox." description: "Value binding of the checkbox."
}, },
{
name: "tabindex",
type: "number",
default: "null",
description: "Index of the element in tabbing order."
},
{ {
name: "class", name: "class",
type: "string", type: "string",

View File

@ -9,10 +9,6 @@ export interface RadioButtonProps {
* Value binding of the checkbox. * Value binding of the checkbox.
*/ */
modelValue?: any; modelValue?: any;
/**
* Index of the element in tabbing order.
*/
tabindex?: number;
/** /**
* Style class of the component input field. * Style class of the component input field.
*/ */

View File

@ -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="radio" :checked="checked" :value="value" v-bind="$attrs" :tabindex="tabindex" @focus="onFocus" @blur="onBlur"> <input ref="input" type="radio" :checked="checked" :value="value" v-bind="$attrs" @focus="onFocus" @blur="onBlur">
</div> </div>
<div ref="box" :class="['p-radiobutton-box', {'p-highlight': checked, 'p-disabled': $attrs.disabled, 'p-focus': focused}]"> <div ref="box" :class="['p-radiobutton-box', {'p-highlight': checked, 'p-disabled': $attrs.disabled, 'p-focus': focused}]">
<div class="p-radiobutton-icon"></div> <div class="p-radiobutton-icon"></div>
@ -19,7 +19,6 @@ export default {
props: { props: {
value: null, value: null,
modelValue: null, modelValue: null,
tabindex: null,
class: null, class: null,
style: null style: null
}, },