Skip to content

Commit

Permalink
feat(tooltip): check. last tooltip must exist
Browse files Browse the repository at this point in the history
  • Loading branch information
RDD2017 committed Sep 1, 2017
1 parent d11f1a0 commit 10adc97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tooltip/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ angular.module('ui.bootstrap.tooltip', ['ui.bootstrap.position', 'ui.bootstrap.s
function keypressListener(e) {
if (e.which === 27) {
var last = openedTooltips.top();
var enableEsc = last.options.enableEsc;
var enableEsc = last ? last.options.enableEsc : true;
if (last && enableEsc) {
last.value.close();
last = null;
Expand Down

0 comments on commit 10adc97

Please sign in to comment.