mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-05 14:38:05 +02:00
Support placeholder for combo fields
This commit is contained in:
@@ -36,10 +36,8 @@ iD.ui.preset.typeCombo = function(field) {
|
||||
return o;
|
||||
}));
|
||||
|
||||
input.attr('placeholder', function() {
|
||||
if (opts.length < 3) return '';
|
||||
return opts.slice(0, 3).join(', ') + '...';
|
||||
});
|
||||
input.attr('placeholder', field.placeholder() ||
|
||||
(opts.length < 3 ? '' : opts.slice(0, 3).join(', ') + '...'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user