CSR-319: fix event triggers for radio buttons

This commit is contained in:
Adam Caouette 2022-03-08 12:26:35 -05:00
parent 8850c11503
commit d95e6c10dd
3 changed files with 6 additions and 3 deletions

View file

@ -2,6 +2,8 @@
<div
class="list-group list-button-horizontal d-flex flex-column w-100 mb-2"
:class="[errors.length > 0 ? 'has-error' : '', hasError ? 'has-error' : '']"
@mouseup="handleClick(value)"
@keyup.space="handleClick(value)"
>
<input
:type="isMultiSelect ? 'checkbox' : 'radio'"
@ -10,7 +12,6 @@
:value="value"
:aria-required="isRequired"
:data-focus-target="groupName"
@click="handleClick(value)"
v-model="checkValue"
@change="!selectingInitiatesLoad ? handleCheckChange() : ''"
/>

View file

@ -2,6 +2,8 @@
<div
class="list-group list-button d-flex flex-column w-100 mb-2"
:class="[errors.length > 0 ? 'has-error' : '', hasError ? 'has-error' : '']"
@mouseup="handleClick(value)"
@keyup.space="handleClick(value)"
>
<input
:type="isMultiSelect ? 'checkbox' : 'radio'"
@ -10,7 +12,6 @@
:value="value"
:aria-required="isRequired"
:data-focus-target="groupName"
@click="handleClick(value)"
v-model="checkValue"
@change="!selectingInitiatesLoad ? handleCheckChange() : ''"
>

View file

@ -7,6 +7,8 @@
errors.length > 0 ? 'has-error' : '',
hasError ? 'has-error' : '',
]"
@mouseup="handleChange(value)"
@keyup.space="handleChange(value)"
>
<input
:type="isMultiSelect ? 'checkbox' : 'radio'"
@ -15,7 +17,6 @@
:value="value"
:aria-required="isRequired"
:data-focus-target="groupName"
@click="handleChange(value)"
v-model="checkValue"
@change="handleCheckChange(value)"
/>