summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--loleaflet/src/control/Control.LokDialog.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/loleaflet/src/control/Control.LokDialog.js b/loleaflet/src/control/Control.LokDialog.js
index a58766c21..67387016a 100644
--- a/loleaflet/src/control/Control.LokDialog.js
+++ b/loleaflet/src/control/Control.LokDialog.js
@@ -1162,7 +1162,7 @@ L.Control.LokDialog = L.Control.extend({
}
$('#sidebar-dock-wrapper').css({display: ''});
- if (this._map.editorHasFocus()) {
+ if (!this._map.editorHasFocus()) {
this._map.fire('editorgotfocus');
this._map.focus();
}
@@ -1218,7 +1218,6 @@ L.Control.LokDialog = L.Control.extend({
this._onSidebarClose(dialogId);
}
}
- $('#sidebar-dock-wrapper').css({display: ''});
},
_onEditorGotFocus: function() {