Skip to content

Commit

Permalink
Control.Layers: add stamp id to the radio button name, to make it uni…
Browse files Browse the repository at this point in the history
…que per control. (Leaflet#6483)

Fixes Leaflet#6482
  • Loading branch information
jjimenezshaw authored and Schleuse committed Dec 3, 2019
1 parent 63872a1 commit 84ba835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/control/Control.Layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ export var Layers = Control.extend({
input.className = 'leaflet-control-layers-selector';
input.defaultChecked = checked;
} else {
input = this._createRadioElement('leaflet-base-layers', checked);
input = this._createRadioElement('leaflet-base-layers_' + Util.stamp(this), checked);
}

this._layerControlInputs.push(input);
Expand Down

0 comments on commit 84ba835

Please sign in to comment.