[vue3] NcAppContent causes two main
elements
#6018
Labels
1. to develop
Accepted and waiting to be taken care of
bug
Something isn't working
vue 3
Related to the vue 3 migration
With Vue 2 the
$mount
will replace the DOM node with the app, but with Vue 3 the app is rendered within the node.This causes problem in most cases, as the templates
user
andpublic
will render<main id="content">
and apps are supposed to mount likeapp.mount('#content')
.This will cause a DOM like:
This is invalid: https://html.spec.whatwg.org/multipage/grouping-content.html#the-main-element
So we need adjust
NcAppContent
todiv
if mounted within amain
tag (conditionally because thebase
andguest
template do not provide amain
element).The text was updated successfully, but these errors were encountered: