Fix radio field click behavior

This commit is contained in:
John Firebaugh
2013-05-28 15:10:57 -07:00
parent 17ba55f58c
commit 3405a663de
+2
View File
@@ -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();
});