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 eventListener is not working for menu that doesn't have any submenu #252

Open
Bradeep opened this issue Feb 1, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Bradeep
Copy link

Bradeep commented Feb 1, 2024

Problem Description

The onclick listener that has been added to menu directly is not getting called.
This used to work in v4.1.2 but when we tried to update it to v4.2.8, it's not working

Sample code

const sampleTemplate = [{
     label:"Resume",
     click: () => {},
 }, 
 {
   label: "Test",
   submenu:[
     label: "Test",
     click: ()=> {}
   ]}
]

Expected Behavior

  • The click functionality of both menu("Resume") and submenu("Test") should work.
  • Used to work till v4.1.2

Current Behavior

  • Click of Resume is not working. Only Test is working
  • Not getting any console errors as well

Additional Information

Current versions that we are using

  • Node: v18
  • Electron: v22
@AlexTorresDev AlexTorresDev added the bug Something isn't working label Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants