Fixed call of popup menu commands with parameters.s

This commit is contained in:
2020-08-04 18:07:48 +02:00
parent 47b178fbc1
commit 12b17fd7af
3 changed files with 12 additions and 8 deletions
+5 -3
View File
@@ -113,9 +113,11 @@ export default class PopupMenu extends Popup {
if (this.autoClose) {
this.close()
}
setTimeout(() => {
func.call(event, key)
}, 20)
console.log("perform", event, key)
setTimeout((event, key) => {
console.log("perform within arrow", event, key)
func(event, key)
}, 20, event, key)
}
/** Update the menu item denoted by key.