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

Fixing some behaviors when there's no context menu on cytoscape background. #71

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

witoreel
Copy link

Hi guys, I would like to suggest this two fixes for issues that I found using your library. At the moment I'm doing some hacks in my code to use your library without fork it, but I guess that other people could make use of this.

Witor Corrêa added 2 commits August 16, 2022 11:49
… in cytoscape background. In this case, target variable is cytoscape itself, and it does not have the method is().
When show context menu over edge, show the menu with one item. When call event directly on background, without closing the menu before, show a context menu with no item, but it's possible to see the borders.

This happens because this function, that is failing in checking element visibility. Accordingly to "http://code.jquery.com/jquery-latest.js", it should check if the display style is equal 'none' instead checking if only existis. In my case, the style.display was block, and it was returning true for isElementHidden.
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