Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

Do not update geocoder control results on special keys #1104

Open
wants to merge 2 commits into
base: publisher-production
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix tests
  • Loading branch information
kirach committed Jan 14, 2016
commit f995ff57dbe3643b1dba7c20f08f2b12e3bdc3b7
2 changes: 1 addition & 1 deletion src/geocoder_control.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ var GeocoderControl = L.Control.extend({
},

_autocomplete: function(e) {
if (this.specialKeyCodes.indexOf(e.keyCode) != -1) return;
if (this.specialKeyCodes.indexOf(e.keyCode) !== -1) return;
if (!this.options.autocomplete) return;
if (this._input.value === '') return this._updateAutocomplete();
this.geocoder.query({
Expand Down