Skip to content

Commit

Permalink
fix for IE 10+11 on Win 8
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickarlt committed Feb 25, 2014
1 parent 6e0a3d1 commit 62921c0
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion dist/esri-leaflet-geocoder-src.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! esri-leaflet-geocoder - v0.0.1 - 2014-02-24
/*! esri-leaflet-geocoder - v0.0.1 - 2014-02-25
* Copyright (c) 2014 Environmental Systems Research Institute, Inc.
* Apache License*/

Expand Down
14 changes: 7 additions & 7 deletions dist/esri-leaflet-geocoder-src.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! esri-leaflet-geocoder - v0.0.1 - 2014-02-24
/*! esri-leaflet-geocoder - v0.0.1 - 2014-02-25
* Copyright (c) 2014 Environmental Systems Research Institute, Inc.
* Apache License*/

Expand Down Expand Up @@ -110,12 +110,7 @@
useMapBounds: 11,
collapseAfterResult: true,
expanded: false,
maxResults: 25,
containerClass: "geocoder-control",
inputClass: "geocoder-control-input leaflet-bar",
suggestionsWrapperClass: "geocoder-control-suggestions leaflet-bar",
selectedSuggestionClass: "geocoder-control-selected",
expandedClass: "geocoder-control-expanded"
maxResults: 25
},
initialize: function (options) {
L.Util.setOptions(this, options);
Expand Down Expand Up @@ -264,6 +259,11 @@
L.DomUtil.addClass(this._container, "geocoder-control-expanded");
}, this);

L.DomEvent.addListener(this._container, "click", function(e){
L.DomUtil.addClass(this._container, "geocoder-control-expanded");
this._input.focus();
}, this);

L.DomEvent.addListener(this._suggestions, "mousedown", function(e){
var suggestionItem = e.target || e.srcElement;
this._geocode(suggestionItem.innerHTML, suggestionItem["data-magic-key"]);
Expand Down
2 changes: 1 addition & 1 deletion dist/esri-leaflet-geocoder.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/esri-leaflet-geocoder.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/esri-leaflet-geocoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,7 @@
useMapBounds: 11,
collapseAfterResult: true,
expanded: false,
maxResults: 25,
containerClass: "geocoder-control",
inputClass: "geocoder-control-input leaflet-bar",
suggestionsWrapperClass: "geocoder-control-suggestions leaflet-bar",
selectedSuggestionClass: "geocoder-control-selected",
expandedClass: "geocoder-control-expanded"
maxResults: 25
},
initialize: function (options) {
L.Util.setOptions(this, options);
Expand Down Expand Up @@ -260,6 +255,11 @@
L.DomUtil.addClass(this._container, "geocoder-control-expanded");
}, this);

L.DomEvent.addListener(this._container, "click", function(e){
L.DomUtil.addClass(this._container, "geocoder-control-expanded");
this._input.focus();
}, this);

L.DomEvent.addListener(this._suggestions, "mousedown", function(e){
var suggestionItem = e.target || e.srcElement;
this._geocode(suggestionItem.innerHTML, suggestionItem["data-magic-key"]);
Expand Down

0 comments on commit 62921c0

Please sign in to comment.