Skip to content

Commit

Permalink
Fixed #1586 - InputSwitch - trueValue-falseValue features causes warning
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitfindikli committed Sep 22, 2021
1 parent 8c9c086 commit 6648de2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/inputswitch/InputSwitch.vue
@@ -1,8 +1,8 @@
<template>
<div :class="containerClass" @click="onClick($event)" :style="style">
<div class="p-hidden-accessible">
<input ref="input" type="checkbox" :checked="modelValue" v-bind="$attrs" @focus="onFocus($event)" @blur="onBlur($event)" @keydown.enter.prevent="onClick($event)"
role="switch" :aria-checked="modelValue">
<input ref="input" type="checkbox" :checked="checked" v-bind="$attrs" @focus="onFocus($event)" @blur="onBlur($event)" @keydown.enter.prevent="onClick($event)"
role="switch" :aria-checked="checked">
</div>
<span class="p-inputswitch-slider"></span>
</div>
Expand All @@ -14,7 +14,10 @@ export default {
inheritAttrs: false,
emits: ['click', 'update:modelValue', 'change', 'input'],
props: {
modelValue: Boolean,
modelValue: {
type: null,
default: false
},
class: null,
style: null,
trueValue: {
Expand Down

0 comments on commit 6648de2

Please sign in to comment.