fix(TimeConductorPopup): don't submit if form is cancelled

This commit is contained in:
Jesse Mazzella 2024-07-24 15:13:41 -07:00
parent 689f7cc815
commit 83e4b44710
2 changed files with 5 additions and 9 deletions

View File

@ -88,7 +88,7 @@
<button
class="c-button icon-x"
aria-label="Discard changes and close time popup"
@click.prevent="handleFormSubmission(true)"
@click.prevent="dismiss"
></button>
</div>
</div>
@ -322,10 +322,8 @@ export default {
this.formattedBounds.end = this.timeFormatter.format(date).split(' ')[0];
this.validateAllBounds('endDate');
},
hide($event) {
if ($event.target.className.indexOf('c-button icon-x') > -1) {
this.$emit('dismiss');
}
dismiss() {
this.$emit('dismiss');
}
}
};

View File

@ -220,10 +220,8 @@ export default {
});
this.$emit('dismiss');
},
hide($event) {
if ($event.target.className.indexOf('c-button icon-x') > -1) {
this.$emit('dismiss');
}
hide() {
this.$emit('dismiss');
},
increment($ev, ref) {
$ev.preventDefault();