Merge pull request #2207 from Zombienaute/master

Issue #2199 - Set focus to popup close button when popup is opened.
This commit is contained in:
Vladimir Agafonkin 2013-11-22 05:18:24 -08:00
commit 769c2472de

View File

@ -7,6 +7,9 @@ L.Marker.include({
if (this._popup && this._map && !this._map.hasLayer(this._popup)) {
this._popup.setLatLng(this._latlng);
this._map.openPopup(this._popup);
if (this._popup.options.closeButton) {
this._popup._closeButton.focus();
}
}
return this;