Foundation-emails: [Undefined] in Menu

Created on 17 May 2016  路  5Comments  路  Source: foundation/foundation-emails

undefinded_menu_inky

How can we reproduce this bug?
Build a basic menu with an item with class="show-on-large"

Write out the HTML (or Inky code) that causes the issue.
<menu class="small-vertical"> <item class="show-for-large">test</item> </menu>

What did you expect to happen?
The menu items should be hidden on all small browsers.

What happened instead?
An [undefined] is added to the item.

What email clients does this happen in?
Outlook 365, Outlook Chrome, Outlook Firefox

Difficulty - Beginner docs help wanted

All 5 comments

Turns out it's not related to 'show-on-large' at all. It seems to be related to when you create an item and don't give it an href.

If you just throw a '#' in there it fixes it.

<item href="#">Test</item>

Ok, that's a good tip to add to the documentation. It should be clear that it's for links.

[undefined] shows up whether you've got an href or not. I'd like to know how to get the image to render without the accompanying [undefined]

@AnikaJaffara Are you putting the href in as an attribute on the item tag (not adding a link inside item)? Easy to do the later out of habit :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AmeliePoulain92 picture AmeliePoulain92  路  5Comments

GBratsos picture GBratsos  路  4Comments

ryangall7 picture ryangall7  路  3Comments

tayvano picture tayvano  路  5Comments

rockse picture rockse  路  3Comments