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",
description: "Value binding of the checkbox."
},
{
name: "tabindex",
type: "number",
default: "null",
description: "Index of the element in tabbing order."
},
{
name: "class",
type: "string",

View File

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

View File

@ -1,7 +1,7 @@
<template>
<div :class="containerClass" @click="onClick($event)" :style="style">
<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 ref="box" :class="['p-radiobutton-box', {'p-highlight': checked, 'p-disabled': $attrs.disabled, 'p-focus': focused}]">
<div class="p-radiobutton-icon"></div>
@ -19,7 +19,6 @@ export default {
props: {
value: null,
modelValue: null,
tabindex: null,
class: null,
style: null
},