Answer the question
In order to leave comments, you need to log in
Why click doesn't fire, but mouseup does?
Here is an example .
Interested in line 66
// Скрыть тултип при клике вне кнопки
$(document).on('click', function(e){
var container = $('.tooltip');
if (container.has(e.target).length === 0) {
$(".tooltip").remove();
}
});
click
? click
and mouseup
everything works.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question