My issue in simple terms:
.on('focus',...)
I want the Popover to hide on blur, but NOT when something is clicked inside the popover itself (otherway clicking on it will make the textbox lose focus and the popover disappears, making it useless).
Any ideas?
Yeah HTML classes, .data(), boolean flags... Whatever suits you
.on('click',...){
popover.addClass('oak');
popover.data('oak',true);
var oak = true;
then
.on('click',...,function(){
//oak = popover.hasClass('oak');
//oak = popover.data('oak');
if(oak) return;
popover.hide();
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.