diff --git a/packages/nuxt/src/app/components/nuxt-loading-indicator.ts b/packages/nuxt/src/app/components/nuxt-loading-indicator.ts index a0273a8428..f17a30bac0 100644 --- a/packages/nuxt/src/app/components/nuxt-loading-indicator.ts +++ b/packages/nuxt/src/app/components/nuxt-loading-indicator.ts @@ -50,7 +50,7 @@ export default defineComponent({ pointerEvents: 'none', width: 'auto', height: `${props.height}px`, - opacity: isLoading.value ? 1 : 0, + opacity: 1, background: error.value ? props.errorColor : props.color || undefined, backgroundSize: `${(100 / progress.value) * 100}% auto`, transform: `scaleX(${progress.value}%)`,