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

Dropdown: child elements of anchor doesn't toggle the submenu #7031

Closed
imranomari opened this issue Nov 19, 2015 · 3 comments
Closed

Dropdown: child elements of anchor doesn't toggle the submenu #7031

imranomari opened this issue Nov 19, 2015 · 3 comments

Comments

@imranomari
Copy link
Contributor

<ul class="dropdown menu align-right" data-dropdown-menu data-disable-hover="true">
    <li class="has-submenu">
        <a href="#">
            <i class="fa fa-user"><!-- can't toggle --></i>
            can toggle
            <span>can't toggle</span>
        </a>
        <ul class="submenu menu vertical" data-submenu>
            <li><a href="#">One</a></li>
            <li><a href="#">Two</a></li>
        </ul>
    </li>
</ul>
@zurbchris
Copy link
Contributor

Thanks for that. It had to do with how we prevent default on item clicks. I'm making a fix and that'll be in the first patch.

@zurbchris
Copy link
Contributor

Just to note, not actually fixed in the master branch yet. We'll be putting out a patch late today or tomorrow that will include this.

@yeetien
Copy link

yeetien commented Nov 20, 2015

Hi @zurbchris

I'm using the version on https://raw.githubusercontent.com/zurb/foundation-sites/develop/js/foundation.dropdownMenu.js.

Submenu links are not working. Have to comment e.preventDefault(); on line 184 for the links to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants