mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-22 00:07:03 +02:00
Set minItems 1 only for multiselect field
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user