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