openstreetmap / iD

🆔 The easy-to-use OpenStreetMap editor in JavaScript.
https://www.openstreetmap.org/edit?editor=id
ISC License
3.38k stars 1.21k forks source link

Error adding way to new relation — can't access property "blur", this is undefined #10555

Open 1ec5 opened 19 hours ago

1ec5 commented 19 hours ago

URL

https://ideditor.netlify.app/#background=Mapbox&disable_features=boundaries&id=w168825325&locale=en&map=20.43/39.28230/-84.28460

How to reproduce the issue?

  1. Select this footpath.
  2. Click the ➕ button in the Relations section of the inspector and select “New relation…”.

Screenshot(s) or anything else?

Nothing happens. The dropdown menu doesn’t close.

TypeError: can't access property "blur", this is undefined

https://github.com/openstreetmap/iD/blob/3bda6c78ee9a5952145ce07ea7e60246f9ac4107/modules/ui/sections/raw_membership_editor.js#L560 https://github.com/openstreetmap/iD/blob/3bda6c78ee9a5952145ce07ea7e60246f9ac4107/modules/ui/sections/raw_membership_editor.js#L174

Which deployed environments do you see the issue in?

Development version at ideditor.netlify.app

What version numbers does this issue effect?

2.31.0-dev

Which browsers are you seeing this problem on?

Firefox

danieldegroot2 commented 15 hours ago

Reproduced in Chrome 131.0.6778.86 on Windows 10

Uncaught TypeError: Cannot read properties of undefined (reading 'blur')
    at m (raw_membership_editor.js:174:14)
    at HTMLInputElement.O (raw_membership_editor.js:560:13)
    at Yp.call (dispatch.js:57:72)
    at HTMLAnchorElement.q (combobox.js:445:22)
    at HTMLAnchorElement.<anonymous> (on.js:3:14)