mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 13:59:27 +02:00
In raw member editor, cancel combobox on blur if it hasn't been accepted
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user