Closed egoist closed 1 year ago
https://github.com/c2r0b/tauri-plugin-context-menu/blob/af0e1134b407ee3d5c87df326da4a8d9bedddb33/webview-src/index.ts#L24
Every time you call showMenu a new listener for theevent function will be created, previous ones are not removed currently, which results in the function being called multiple times.
showMenu
event
Fixed in version 4.0.1 of the TS Utility package (tauri-plugin-context-menu) #8.
Thank you for reporting 🙏
https://github.com/c2r0b/tauri-plugin-context-menu/blob/af0e1134b407ee3d5c87df326da4a8d9bedddb33/webview-src/index.ts#L24
Every time you call
showMenu
a new listener for theevent
function will be created, previous ones are not removed currently, which results in the function being called multiple times.