Skip to content

Commit 621ca03

Browse files
author
perliedman
committed
Prevent Esc key from collapsing control when collapsed option is set to false. Close #36.
1 parent 13309c5 commit 621ca03

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Control.Geocoder.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@
207207
switch (e.keyCode) {
208208
// Escape
209209
case 27:
210-
this._collapse();
210+
if (this.options.collapsed) {
211+
this._collapse();
212+
}
211213
break;
212214
// Up
213215
case 38:

0 commit comments

Comments
 (0)