Fix empty key exception in raw tag editor and clean up linting spacing#12043
Fix empty key exception in raw tag editor and clean up linting spacing#12043JaiswalShivang wants to merge 3 commits intoopenstreetmap:developfrom
Conversation
|
Unfortunately, this does not seem to fix the glitch: Screencast.From.2026-03-18.17-49-19.mp4 |
|
Hey @tyrasd! Thanks for the video—that helped me understand the exact glitch described in #11970 much better! valueChange |
Fixes: [#11970 ]
Description
This PR addresses a bug in the raw tag editor where completely emptying a tag key could dispatch an unwanted or malformed change event. Additionally, it resolves some lingering ESLint formatting warnings in the file.
Changes made
if (!kNew) return;return in [raw_tag_editor.js] to prevent the editor from attempting to process and dispatch tag changes when a user clears a key input.Testing
npm run test:once).