Skip to content

Fixes #53 by using the mousedown event to close the menu#57

Merged
KidSysco merged 5 commits into
KidSysco:masterfrom
benjamin-albert:master
Apr 19, 2016
Merged

Fixes #53 by using the mousedown event to close the menu#57
KidSysco merged 5 commits into
KidSysco:masterfrom
benjamin-albert:master

Conversation

@benjamin-albert
Copy link
Copy Markdown
Collaborator

When the user clicks the close button of a jQuery UI dialog it will not close because the Close() method
sees that the event.isDefaultPrevented() returns true.

I worked around the dialog not closing by using the mousedown event to close the menu instead of the click event.

This is a workaround until the next major release where we can redesign the way users can prevent the menu from closing.

I also updated grunt in package.json and node version in .travis.yml to fix failing Travis CI build.

If you have a better idea to fix this problem that doesn't involve changing the API before a major release I would be discuss it.

Benjamin Albert and others added 3 commits April 18, 2016 17:14
When the user clicks the close button of a jQuery UI
dialog it will not close because the Close() method
sees that the event.isDefaultPrevented() returns
true.

This is a workaround until the next major release
where we can redesign the way users can prevent the menu
from closing.
@benjamin-albert
Copy link
Copy Markdown
Collaborator Author

After you merge the PR we need to add a release tag for bower.

If you want I can do that.

@KidSysco KidSysco merged commit ea793f9 into KidSysco:master Apr 19, 2016
@KidSysco
Copy link
Copy Markdown
Owner

Very clever work here that allows us to solve the problem without changing the public API. Great job once again Ben! Thanks for your hard 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

Successfully merging this pull request may close these issues.

2 participants