Skip to content
This repository was archived by the owner on Sep 13, 2024. It is now read-only.
This repository was archived by the owner on Sep 13, 2024. It is now read-only.

Click eventListener is not working for menu that doesn't have any submenu #252

@Bradeep

Description

@Bradeep

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions