From 1103cb1f9d2a2077f65a0d08aee67ee9bf0e9540 Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Mon, 25 Oct 2021 14:07:00 -0400 Subject: [PATCH] Prevent passing class to Vue components --- packages/renderers/renderer-vue/client.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/renderers/renderer-vue/client.js b/packages/renderers/renderer-vue/client.js index 83ea80524..dfbd48a30 100644 --- a/packages/renderers/renderer-vue/client.js +++ b/packages/renderers/renderer-vue/client.js @@ -2,6 +2,7 @@ import { h, createSSRApp } from 'vue'; import StaticHtml from './static-html.js'; export default (element) => (Component, props, children) => { + delete props['class']; // Expose name on host component for Vue devtools const name = Component.name ? `${Component.name} Host` : undefined; const app = createSSRApp({ name, render: () => h(Component, props, { default: () => h(StaticHtml, { value: children }) }) });