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

firefox bug #10

Open
ccccps opened this issue Nov 13, 2017 · 5 comments
Open

firefox bug #10

ccccps opened this issue Nov 13, 2017 · 5 comments

Comments

@ccccps
Copy link

ccccps commented Nov 13, 2017

On Firefox,
in setPositionFromEvent ()
the e is undefined when open() is called

We should use open($event) instead of open()

I tested it both in Windows and OSX.

@vinhhungle
Copy link

Thanks @sonmunehiro . It works!

@Suvojit-tapadar
Copy link

Suvojit-tapadar commented May 24, 2018

@sonmunehiro thanks for the solution but it works properly at chrome browser but in Mozilla firefox context menu appeared at top left corner.

I inspect and found
On Mozilla :======
class="ctx-menu-container dropdown-menu" style="display: block; top: 0px; left: 0px;"
On Chrome : ========
class="ctx-menu-container dropdown-menu" style="display: block; top: 441px; left: 580px;"

Onclick event top and left value appears 0 instead of X, Y position of click point.

can you help?

@adlecluse
Copy link

@Suvojit-tapadar I'm having the same issue as you. Did you manage to fix it?

@Suvojit-tapadar
Copy link

Hi, Yes i fixed it in this way
onClick(event, instance, ECharts) {
this.$refs.ctxMenu.open(this.$event, { name: event.name }); // issue was this.$event
this.$refs.ctxMenu.open(event.event.event, { name: event.name }); // working fine
console.log("onclick", arguments);
},
I update my code event.event.event instead of this.$event.

@adlecluse
Copy link

Ok, got it. You made me think about that event object, it was undefined in my case, because I emit it to a parent component without sending the event object with it.

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