Fix an issue where pressing enter in the preset search bar wouldn't select the first preset (close #5921)

This commit is contained in:
Quincy Morgan
2019-02-25 10:42:10 -05:00
parent 2d974caed1
commit 07fe7a1107
+2 -1
View File
@@ -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()); });
}
}