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

Click Main Option to Open #30

Open
austinstudio opened this issue Aug 30, 2015 · 7 comments
Open

Click Main Option to Open #30

austinstudio opened this issue Aug 30, 2015 · 7 comments

Comments

@austinstudio
Copy link

Is there a way I can make it so you have to click or press enter/space to get the first level of the menu to open? I don't want it to happen on hover of the mouse. Most menu scripts I have seen have some parameters that can be set through JavaScript but I can't find any API with this one that does this.

Thank you in advance.

@austinstudio
Copy link
Author

Does anyone review the items out here anymore?

@austinstudio
Copy link
Author

Well I don't know if this is a good way to do this or not, but I changed the following in line 752 of the js file.

.on("mouseover.accessible-megamenu", $.proxy(_mouseOverHandler, this))

To:

.on("click.accessible-megamenu", $.proxy(_mouseOverHandler, this))

This seems to have worked but not sure if there is another way to do this that won't equal modifying the mouseover event.

@tdhooper
Copy link
Contributor

This would be fixed by #27

@austinstudio
Copy link
Author

Thanks for the response. I did the same eventually. I just figured there would be a better way.

@tactics2
Copy link

tactics2 commented Dec 9, 2015

I'm trying to do the same. I followed austinstudio's suggestion above and that opens the menu on first click, but I need it to close when the user clicks it again. Suggestions?

@austinstudio
Copy link
Author

There might be another place where the close event is called that needs to also be changed.

@NewJenk
Copy link

NewJenk commented Mar 1, 2016

Any luck solving this @tactics2?

I'm having the same issue.

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

4 participants