Fixed call of popup menu commands with parameters.s
This commit is contained in:
+5
-3
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user