You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting bodyAttrs.class in a component, and then a layout (Nuxt) will not merge them properly, as both values are strings. The component seems to always win.
Solution:
Allow bodyAttrs keys to have values as array or object.
This would allow deepmerge module to merge the values correctly.
Then a rendered version would just concat with a space or something like that.
E.g.:
bodyAttrs: {class: ['foo','bar']}
OR
bodyAttrs: {class: {foo: true,bar: true}}
The text was updated successfully, but these errors were encountered:
This issue has been closed as changes for it are included in the v2 release candidate. Please help us testing the release candidate and report any follow-ups in a new issue
Problem:
Setting
bodyAttrs.class
in a component, and then a layout (Nuxt) will not merge them properly, as both values are strings. The component seems to always win.Solution:
Allow
bodyAttrs
keys to have values as array or object.This would allow
deepmerge
module to merge the values correctly.Then a rendered version would just concat with a space or something like that.
E.g.:
OR
The text was updated successfully, but these errors were encountered: