Merge pull request #2171 from danzel/hack-2033

Fix layers control on firefox android
This commit is contained in:
Vladimir Agafonkin 2013-11-07 16:45:39 -08:00
commit 60f5d46e53

View File

@ -96,6 +96,10 @@ L.Control.Layers = L.Control.extend({
else {
L.DomEvent.on(link, 'focus', this._expand, this);
}
//Work around for Firefox android issue https://github.com/Leaflet/Leaflet/issues/2033
L.DomEvent.on(form, 'click', function () {
setTimeout(L.bind(this._onInputClick, this), 0);
}, this);
this._map.on('click', this._collapse, this);
// TODO keyboard accessibility