Merge pull request #2757 from tugcekucukoglu/accessibility-inputswitch

remove incorrect role
pull/2760/head
Tuğçe Küçükoğlu 2022-07-04 15:02:47 +03:00 committed by GitHub
commit 99876ded02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<div :class="containerClass" @click="onClick($event)" :style="style" role="checkbox" :aria-checked="checked"> <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" v-bind="$attrs" role="switch" :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)">