mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-26 18:07:50 +02:00
Removed extra padding in comboboxes when the caret is hidden
This commit is contained in:
@@ -191,14 +191,8 @@ export function uiFieldCombo(field, context) {
|
||||
});
|
||||
}
|
||||
|
||||
if (data.length === 0) {
|
||||
// hide the caret if there are no suggestions
|
||||
container.select('.combobox-caret')
|
||||
.style('display', 'none');
|
||||
} else {
|
||||
container.select('.combobox-caret')
|
||||
.style('display', null);
|
||||
}
|
||||
// hide the caret if there are no suggestions
|
||||
container.classed('empty-combobox', data.length === 0);
|
||||
|
||||
_comboData = _map(data, function(d) {
|
||||
var k = d.value;
|
||||
|
||||
Reference in New Issue
Block a user