diff --git a/resources/js/components/themes/Selector.vue b/resources/js/components/themes/Selector.vue index d67cb532205..42faad3de9d 100644 --- a/resources/js/components/themes/Selector.vue +++ b/resources/js/components/themes/Selector.vue @@ -54,8 +54,9 @@ watch( (newValue) => newValue ? applyTheme(newValue) : applyDefaultTheme(), ) -const originalTheme = props.modelValue; -onUnmounted(() => originalTheme ? applyTheme(originalTheme) : applyDefaultTheme()); +const themeColors = document.getElementById('theme-colors'); +const originalThemeColors = themeColors.textContent; +onUnmounted(() => themeColors.textContent = originalThemeColors); function selectNewlyPublishedTheme() { if (!props.modelValue || props.modelValue.id !== 'custom') return;