Set minItems 1 only for multiselect field

This commit is contained in:
Bryan Housel
2016-04-22 22:20:47 -04:00
parent 30df2c394f
commit 1b73ce9339
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ iD.ui.preset.multiselect = function(field, context) {
function multiselect(selection) {
isInitialized = false;
combobox = d3.combobox();
combobox = d3.combobox().minItems(1);
multiselectContainer = selection.selectAll('ul').data([0]);
+1 -1
View File
@@ -2,7 +2,7 @@ d3.combobox = function() {
var event = d3.dispatch('accept'),
data = [],
suggestions = [],
minItems = 1,
minItems = 2,
caseSensitive = false;
var fetcher = function(val, cb) {