INSR-8561: Fix default "enter" key behavior
This specifically fixes an issue where hitting "enter" on the welcome page was triggering the "finish filing existing claim" button, even in cases where that modal was not visible.
This commit is contained in:
parent
6e10869016
commit
8db41a1e10
2 changed files with 5 additions and 2 deletions
|
|
@ -22,8 +22,9 @@
|
|||
'hide-button': isForwardButtonHidden
|
||||
}"
|
||||
:aria-disabled="disableForwardAction || isForwardActionDisabled"
|
||||
:isDisabled="disableForwardAction || isForwardActionDisabled"
|
||||
:isDisabled="disableForwardAction || isForwardActionDisabled || isForwardButtonHidden"
|
||||
data-test-id="site-footer-main-button"
|
||||
buttonType="submit"
|
||||
@clickEvent="buttonClick" />
|
||||
</div>
|
||||
<div
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
:aria-disabled="isDisabled"
|
||||
class="btn d-flex align-items-center justify-content-center delay"
|
||||
:class="[getVariant, `btn-${size}`, canOverride ? 'btn-override' : '']"
|
||||
:type="buttonType"
|
||||
@click="clicked">
|
||||
<span class="m-0">{{ buttonText }}</span>
|
||||
</button>
|
||||
|
|
@ -21,7 +22,8 @@ export default {
|
|||
isDisabled: Boolean,
|
||||
isOutline: Boolean,
|
||||
pushToGA: Boolean,
|
||||
canOverride: { type: Boolean, required: false, default: true }
|
||||
canOverride: { type: Boolean, required: false, default: true },
|
||||
buttonType: { type: String, required: false, default: 'button' }
|
||||
},
|
||||
emits: ['click-event'],
|
||||
computed: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue