Merge pull request #2171 from danzel/hack-2033
Fix layers control on firefox android
This commit is contained in:
commit
60f5d46e53
@ -96,6 +96,10 @@ L.Control.Layers = L.Control.extend({
|
|||||||
else {
|
else {
|
||||||
L.DomEvent.on(link, 'focus', this._expand, this);
|
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);
|
this._map.on('click', this._collapse, this);
|
||||||
// TODO keyboard accessibility
|
// TODO keyboard accessibility
|
||||||
|
Loading…
Reference in New Issue
Block a user