ITADN

When typing the key in the tag editor, then quickly clicking into the value field, the key is changed

#12439OpenMapSpot 创建于 2026-06-12
M
MapSpotcommented
### URL _No response_ ### How to reproduce the issue? This is a very common occurrence when trying to add short tags like area=yes or ref=* for example. To reproduce, type "ref" in the key field of any object, and _immediately_ click into the value field after typing the last letter... <img width="373" height="130" alt="Image" src="https://github.com/user-attachments/assets/437c523c-cfca-4cdf-9d2a-8c56e701f6c9" /> You'll notice that the "ref" key is changed to a different value. <img width="368" height="125" alt="Image" src="https://github.com/user-attachments/assets/80e9ef46-9109-42cf-8824-28c917e25329" /> This replacement value typically corresponds with the top autocomplete recommendation that can be accessed from the drop-down menu in the key field <img width="365" height="323" alt="Image" src="https://github.com/user-attachments/assets/b12c3696-553a-474d-a1c7-785af5951d77" /> ... I believe this is a result of the half-second delay it takes for the autocomplete suggestion to appear, acting retroactively after clicking out of the key field. This function has its uses, but it should be overridden if the current value entered is already a common and valid tag on its own. (e.g. the invalid value "nat" should be autocompleted to "natural", but the common tag "ele" should not be autocompleted to "ele:accuracy" ### Screenshot(s) or anything else? _No response_ ### Which deployed environments do you see the issue in? Development version at ideditor.netlify.app ### What version numbers does this issue affect? 2.40.0 ### Which browsers are you seeing this problem on? Chrome
1 条评论