mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-19 23:14:47 +02:00
Fix an issue where pressing enter in the preset search bar wouldn't select the first preset (close #5921)
This commit is contained in:
@@ -90,7 +90,8 @@ export function uiPresetList(context) {
|
||||
// enter
|
||||
var value = search.property('value');
|
||||
if (d3_event.keyCode === 13 && value.length) {
|
||||
list.selectAll('.preset-list-item:first-child').datum().choose();
|
||||
list.selectAll('.preset-list-item:first-child')
|
||||
.each(function(d) { d.choose.call(d3_select(this).node()); });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user