Use teleport to avoid rendering inconsistency.

This commit is contained in:
Chloe Herd 2026-07-21 14:33:51 -04:00
parent 9aae54aca4
commit f4e55f359c
3 changed files with 6 additions and 3 deletions

View file

@ -49,7 +49,7 @@ export default {
);
if (!this.isDisabled) {
if (!this.suppressLoader) this.isLoaderDisplayed = true;
//this.$emit("click-event");
this.$emit("click-event");
}
},
resetButtonStyle() {
@ -65,7 +65,7 @@ export default {
<style lang="scss">
.btn {
font-family: UrbanistSemibold, Arial, Helvetica, sans-serif;
&.btn-primary {
position: relative;
background: $red;

View file

@ -1,6 +1,7 @@
<template>
<div
class="intercept-overlay"
aria-hidden="true"
@keydown.capture="blockKey"
@click="captureClick"></div>
</template>

View file

@ -1,5 +1,7 @@
<template>
<interceptOverlay v-if="!allowPageInteraction" />
<Teleport to="body">
<interceptOverlay v-if="!allowPageInteraction" />
</Teleport>
<div
class="loader"
role="alert"