mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
Fix radio field click behavior
This commit is contained in:
@@ -20,6 +20,7 @@ iD.ui.preset.radio = function(field) {
|
||||
|
||||
buttons
|
||||
.on('click', function(d) {
|
||||
d3.event.preventDefault();
|
||||
buttons.classed('active', function(e) { return d === e; });
|
||||
change();
|
||||
});
|
||||
@@ -39,6 +40,7 @@ iD.ui.preset.radio = function(field) {
|
||||
|
||||
remove
|
||||
.on('click', function() {
|
||||
d3.event.preventDefault();
|
||||
buttons.classed('active', false);
|
||||
change();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user