Capture and don't propogate clicks on loader

This commit is contained in:
Chloe Herd 2023-11-15 12:47:58 -05:00
parent 8fdc9da392
commit 6927e11e26

View file

@ -3,6 +3,7 @@
class="loader"
role="alert"
aria-label="Loading new page"
@click="captureClick"
v-bind:class="[
this.loaderColor,
this.loaderPosition,
@ -30,6 +31,13 @@ export default {
default: false,
},
},
methods: {
captureClick(event) {
if (!this.allowPageInteraction) {
event.stopPropagation();
}
},
},
};
</script>