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

nw.Menu.popup works only once - v0.14.0 SDK - Win x64 #4721

Closed
MehmetKursat opened this issue Apr 14, 2016 · 5 comments
Closed

nw.Menu.popup works only once - v0.14.0 SDK - Win x64 #4721

MehmetKursat opened this issue Apr 14, 2016 · 5 comments
Assignees
Milestone

Comments

@MehmetKursat
Copy link

As the title says.

@rogerwang
Copy link
Member

It works for me. Could you please provide a sample? I was reusing code from #4697

@MehmetKursat
Copy link
Author

Yes: contextmenu-test.zip

@MehmetKursat
Copy link
Author

Interestingly it worked more than once when I tried just now and in the next restart it didn't work more than once. Not sure if the problem is from me, can anyone else confirm this?

Make sure you restart it and try again for a few times.

@rogerwang rogerwang added this to the 0.14.x milestone Apr 15, 2016
@cszucko
Copy link

cszucko commented Apr 23, 2016

I'm encountering this issue as well. If I create a new menu each time (like in #4697) it works fine, but if I try to reuse a menu (like in the example from @FiatPax) popup() usually only works once. I don't encounter the issue on every app launch, but it happens much more frequently than it doesn't.

I checked a few different releases and have not been able to trigger the issue under 0.13.x, but can get it to occur starting from 0.14.0. I'm running a 64-bit version of Windows 10 and the problem affects both the 32 and 64-bit versions of NW.js. I also checked to see if it might an issue of nw.Menu() vs gui.Menu(), but found no difference.

@ghost
Copy link

ghost commented Apr 27, 2016

Same here on Win7 and Mint 17.3 both with nw.js 14.2

All the context menu demos work only after the first click, successive clicks do not.

Furthermore, not sure if this is related. I have a HTML textarea that I update with document.getElementById("id").textContent.

This works multiple times as long as I do not change anything in the textarea. Once I click into the form field and change something or delete the whole content, it stops working. If I write the content to the console it is there but the GUI does not get refreshed. Anyone else experiencing this?

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