Adjust multiCombo styling

This commit is contained in:
Bryan Housel
2016-04-29 21:15:14 -04:00
parent 5752207c91
commit fb2dd89a65
2 changed files with 25 additions and 9 deletions
+3 -2
View File
@@ -247,9 +247,10 @@ iD.ui.preset.multiCombo = function(field, context) {
var available = objectDifference(comboData, multiData);
combobox.data(available);
// Hide "Add" button if there are no available multiselect options remaining..
// Hide "Add" button if this field uses fixed set of
// translateable optstrings and they're all currently used..
container.selectAll('.combobox-input, .combobox-caret')
.classed('hide', !available.length);
.classed('hide', optstrings && !available.length);
// Render chips