From d05caa81e85e06f559415e93c98c81e712f696ce Mon Sep 17 00:00:00 2001 From: Horu <73709188+HigherOrderLogic@users.noreply.github.com> Date: Sat, 14 Sep 2024 01:05:28 +1000 Subject: [PATCH] fix: synchronize Vue 2 & 3 component behaviour Overlook in nuxt-modules/color-mode#282 --- src/runtime/component.vue2.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/component.vue2.vue b/src/runtime/component.vue2.vue index b4ae8b0..e36f2f4 100644 --- a/src/runtime/component.vue2.vue +++ b/src/runtime/component.vue2.vue @@ -13,7 +13,7 @@ export default { }, render(createElement, { data, props, children, slots }) { // transform props for - if (slots.placeholder) { + if (!props.placeholder && slots.placeholder) { props = { placeholderTag: props.placeholderTag, }