Skip to content

Commit

Permalink
Merge 7b319a3 into a6dad4c
Browse files Browse the repository at this point in the history
  • Loading branch information
lqez committed Dec 4, 2018
2 parents a6dad4c + 7b319a3 commit e54ede4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/js/bs3/ui.js
Expand Up @@ -170,6 +170,8 @@ const ui = {
container: (options.container !== undefined) ? options.container : 'body',
trigger: 'hover',
placement: 'bottom',
}).on('click', (e) => {
$(e.currentTarget).tooltip('hide');
});
}
})($node, options);
Expand Down
2 changes: 2 additions & 0 deletions src/js/bs4/ui.js
Expand Up @@ -172,6 +172,8 @@ const ui = {
container: (options.container !== undefined) ? options.container : 'body',
trigger: 'hover',
placement: 'bottom',
}).on('click', (e) => {
$(e.currentTarget).tooltip('hide');
});
}
})($node, options);
Expand Down
4 changes: 3 additions & 1 deletion src/js/lite/ui.js
Expand Up @@ -35,7 +35,9 @@ const button = renderer.create('<button type="button" class="note-btn" role="but
$node.data('_lite_tooltip', new TooltipUI($node, {
title: options.tooltip,
container: options.container,
}));
})).on('click', (e) => {
$(e.currentTarget).data('_lite_tooltip').hide();
});
}
if (options.contents) {
$node.html(options.contents);
Expand Down

0 comments on commit e54ede4

Please sign in to comment.