From 51ac5f526205b13e45e84f074d0939cbf8e65b41 Mon Sep 17 00:00:00 2001 From: Dani Herrero Date: Wed, 5 Jul 2017 14:59:40 +0200 Subject: [PATCH] =?UTF-8?q?correccion=20ortogr=C3=A1fica?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/core/src/popover/popover.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/core/src/popover/popover.js b/client/core/src/popover/popover.js index 57dbe306e..7354dccb5 100644 --- a/client/core/src/popover/popover.js +++ b/client/core/src/popover/popover.js @@ -175,17 +175,17 @@ export class Popover { } onDocKeyDown(event) { if (event.keyCode === 27) { - let targetId = this._findPopOver(this.latTarget); + let targetId = this._findPopOver(this.lastTarget); if (targetId) { this.hideChilds(targetId); } else { this.hideAll(); } - this.latTarget = null; + this.lastTarget = null; } } onPopoverMouseDown(event) { - this.latTarget = event.target; + this.lastTarget = event.target; } } Popover.$inject = ['$document', '$compile', '$transitions'];