eventContextMenu: {
items: {
extraItems: {
text: 'View User',
icon: 'b-fa-user',
onItem({ eventRecord }) {
scheduler.current.destroy()
history.push(`/users/${eventRecord.data.userId}`)
}
}
}
}
Support Forum
I created a simple menu item via features like this:
All I want to do is navigate to a different page and display info about that user. However, the context menu remains open and there are a flurry of errors in the console:
- Attachments
-
- screenshot.png (848.7 KiB) Viewed 998 times
Hi!
It is rather hard to give you a certain answer without full app code.
But obviously you should inspect scheduler.current.destroy().
Why you call it within menu's onItem?
You could also use https://www.bryntum.com/docs/scheduler/#Core/widget/MenuItem#config-href to use menu item as link.
It is rather hard to give you a certain answer without full app code.
But obviously you should inspect scheduler.current.destroy().
Why you call it within menu's onItem?
You could also use https://www.bryntum.com/docs/scheduler/#Core/widget/MenuItem#config-href to use menu item as link.