Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(runtime-core): fix resolving inheritAttrs from mixins #3742

Merged
merged 4 commits into from
May 28, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/runtime-core/src/componentOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,8 @@ export function applyOptions(
renderTriggered,
errorCaptured,
// public API
expose
expose,
inheritAttrs
} = options

const publicThis = instance.proxy!
Expand Down Expand Up @@ -748,6 +749,7 @@ export function applyOptions(
// To reduce memory usage, only components with mixins or extends will have
// resolved asset registry attached to instance.
if (asMixin) {
if (inheritAttrs !== undefined) instance.type.inheritAttrs = inheritAttrs
edison1105 marked this conversation as resolved.
Show resolved Hide resolved
resolveInstanceAssets(instance, options, COMPONENTS)
resolveInstanceAssets(instance, options, DIRECTIVES)
if (__COMPAT__ && isCompatEnabled(DeprecationTypes.FILTERS, instance)) {
Expand Down