From c82c57f8cbbac4ed97fef48789fcf0b6ce44a141 Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Tue, 11 Feb 2020 15:21:28 -0800 Subject: [PATCH] Update feature names in the selection list while typing in the name field (close #7334) --- modules/ui/selection_list.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/ui/selection_list.js b/modules/ui/selection_list.js index 773355d33..9f259593a 100644 --- a/modules/ui/selection_list.js +++ b/modules/ui/selection_list.js @@ -128,7 +128,11 @@ export function uiSelectionList(context) { .text(function(entity) { return context.presets().match(entity, context.graph()).name(); }); items.selectAll('.entity-name') - .text(function(entity) { return utilDisplayName(entity); }); + .text(function(d) { + // fetch latest entity + var entity = context.entity(d.id) + return utilDisplayName(entity); + }); } function updateTitle() {