Skip to content

Commit 45d830a

Browse files
committed
fix(Components): CheckBoxes should listen to change events
1 parent 4575dd4 commit 45d830a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sfxcode/formkit-primevue",
3-
"version": "1.6.3",
3+
"version": "1.6.4",
44
"type": "module",
55
"license": "MIT",
66
"repository": "https://github.com/sfxcode/formkit-primevue",

src/formkit/PrimeCheckbox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const styleClass = computed(() => (context?.state.validationVisible && !context?
3232
:pt="attrs.pt"
3333
:pt-options="attrs.ptOptions"
3434
:unstyled="attrs.unstyled ?? false"
35-
@input="handleInput"
35+
@change="handleInput"
3636
/>
3737
<span v-if="context.attrs.labelRight" class="formkit-prime-right">{{ context.attrs.labelRight }}</span>
3838
</div>

src/formkit/PrimeInputSwitch.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const styleClass = computed(() => (context?.state.validationVisible && !context?
3030
:pt="attrs.pt"
3131
:pt-options="attrs.ptOptions"
3232
:unstyled="attrs.unstyled ?? false"
33-
@input="handleInput"
33+
@change="handleInput"
3434
/>
3535
<span v-if="context.attrs.labelRight" class="formkit-prime-right">{{ context.attrs.labelRight }}</span>
3636
</div>

src/formkit/PrimeTriStateCheckbox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const styleClass = computed(() => (context?.state.validationVisible && !context?
2929
:pt="attrs.pt"
3030
:pt-options="attrs.ptOptions"
3131
:unstyled="attrs.unstyled ?? false"
32-
@click="handleChange"
32+
@change="handleChange"
3333
/>
3434
<span v-if="context.attrs.labelRight" class="formkit-prime-right">{{ context.attrs.labelRight }}</span>
3535
</div>

0 commit comments

Comments
 (0)