Skip to content

Commit

Permalink
In raw member editor, cancel combobox on blur if it hasn't been accepted
Browse files Browse the repository at this point in the history
  • Loading branch information
bhousel committed Jan 28, 2019
1 parent 10ee54d commit 49442af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ui/raw_membership_editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -338,7 +339,6 @@ export function uiRawMembershipEditor(context) {
});



function acceptEntity(d) {
if (!d) {
cancelEntity();
Expand Down

0 comments on commit 49442af

Please sign in to comment.