You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would you be amenable to a PR that allows the user to specify the initial event type in the options?
This, for example, would change the initial click even to a left/standard click:
newVanillaContextMenu({scope: document.querySelector('edit'),eventType: "click",// Optional. Defaults to "contextMenu"menuItems: [ ... ],});
I initially balked at the designer's request since contextual menus have an expected trigger (found in Apple's HIGs, Windows design controls, etc), but with the change, this library works great for recreating this example (found in Google Chat).
Screen.Recording.2024-03-10.at.1.20.47.PM.mov
The text was updated successfully, but these errors were encountered:
Would you be amenable to a PR that allows the user to specify the initial event type in the options?
This, for example, would change the initial click even to a left/standard click:
I initially balked at the designer's request since contextual menus have an expected trigger (found in Apple's HIGs, Windows design controls, etc), but with the change, this library works great for recreating this example (found in Google Chat).
Screen.Recording.2024-03-10.at.1.20.47.PM.mov
The text was updated successfully, but these errors were encountered: