We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a5aa54 commit 1520986Copy full SHA for 1520986
src/platforms/web/server/modules/attrs.js
@@ -25,6 +25,10 @@ export default function renderAttrs (node: VNodeWithData): string {
25
if (isUndef(opts) || opts.Ctor.options.inheritAttrs !== false) {
26
let parent = node.parent
27
while (isDef(parent)) {
28
+ // Stop fallthrough in case parent has inheritAttrs option set to false
29
+ if (parent.componentOptions && parent.componentOptions.Ctor.options.inheritAttrs === false) {
30
+ break;
31
+ }
32
if (isDef(parent.data) && isDef(parent.data.attrs)) {
33
attrs = extend(extend({}, attrs), parent.data.attrs)
34
}
0 commit comments