we can stop the dropdown to close on Onclick function by using the Jquery function:
For whole dropdown in UI:
$("dropdown-menu").click(function(event){
event.stopPropagation();
});
event.stopPropagation();
});
For specific Click function in UI:
Put the 
event.stopPropagation() call inside your condition. For example:$el.click(function(event) {
    if (some_condition) {
        event.stopPropagation()
        // do stuff
    }
    else {
        // do other stuff, without stopping propagation
    }
}); 


 

 
No comments:
Post a Comment