Merge pull request #2207 from Zombienaute/master
Issue #2199 - Set focus to popup close button when popup is opened.
This commit is contained in:
commit
769c2472de
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user