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
Current behavior:
Prerender removes the ion-menu[contentId] attribute and causes a console warning and an error:
WARN: [DEPRECATED][ion-menu] Using the [main] attribute is deprecated, please use the "contentId" property instead:
BEFORE:
<ion-menu>...</ion-menu>
<div main>...</div>
AFTER:
<ion-menu contentId="my-content"></ion-menu>
<div id="my-content">...</div>
ERROR: Menu: must have a "content" element to listen for drag events on.
Expected behavior:
No warnings / errors.
Steps to reproduce:
Create a new Stencil project with the ionic-pwa starter.
Add <ion-menu contentId="main-content">.
Add an <ion-content contentId="main-content">.
Run npm run build --prerender and launch in the browser.
Stencil version:
I'm submitting a:
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/
Current behavior:
Prerender removes the
ion-menu[contentId]
attribute and causes a console warning and an error:Expected behavior:
No warnings / errors.
Steps to reproduce:
ionic-pwa
starter.<ion-menu contentId="main-content">
.<ion-content contentId="main-content">
.npm run build --prerender
and launch in the browser.Related code:
Other information:
The same problem exists with
<ion-split-pane>
(split pane does not have a specified main node
).Workaround:
Add an additional
content-id
attribute to<ion-menu>
with the same value ascontentId
.The text was updated successfully, but these errors were encountered: