|
created: function(args) {
// bind click event to close the context menu popup
this.getContent().addEventListener("click", onScroll);
},
contextMenuOpen: function(args) {
args.element.ej2_instances[0].beforeClose = function(args) {
if (isClick) {
args.cancel = false;
} else {
args.cancel = true;
}
isClick = false;
};
args.element.ej2_instances[0].select = function(args) {
isClick = true;
};
},
function onScroll() {
isClick = true;
}
|