Skip to content

Commit

Permalink
Fix an issue where pressing enter in the preset search bar wouldn't s…
Browse files Browse the repository at this point in the history
…elect the first preset (close #5921)
  • Loading branch information
quincylvania committed Feb 25, 2019
1 parent 2d974ca commit 07fe7a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/ui/preset_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()); });
}
}

Expand Down

0 comments on commit 07fe7a1

Please sign in to comment.