From 49442afe0cbd81bb71775712ddbb88971167e693 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Mon, 28 Jan 2019 15:40:26 -0500 Subject: [PATCH] In raw member editor, cancel combobox on blur if it hasn't been accepted --- modules/ui/raw_membership_editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/raw_membership_editor.js b/modules/ui/raw_membership_editor.js index 37b2e573c..b8f19c1d9 100644 --- a/modules/ui/raw_membership_editor.js +++ b/modules/ui/raw_membership_editor.js @@ -298,6 +298,7 @@ export function uiRawMembershipEditor(context) { .merge(newMembershipEnter); newMembership.selectAll('.member-entity-input') + .on('blur', cancelEntity) // if it wasn't accepted normally, cancel it .call(nearbyCombo .on('accept', acceptEntity) .on('cancel', cancelEntity) @@ -338,7 +339,6 @@ export function uiRawMembershipEditor(context) { }); - function acceptEntity(d) { if (!d) { cancelEntity();