In raw member editor, cancel combobox on blur if it hasn't been accepted

This commit is contained in:
Bryan Housel
2019-01-28 15:40:26 -05:00
parent 10ee54d624
commit 49442afe0c
+1 -1
View File
@@ -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();