Fixes #5959. To reproduce the bug: 1. add `sleep 5` or something similar into directions search action https://github.com/openstreetmap/openstreetmap-website/blob/d54310c0dbf0c69ddbaeabfc93e415129dad6f66/app/controllers/directions_controller.rb#L7-L9 2. do steps from #5959
The fix here delays the route request to be performed after the sidebar finishes loading. You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/5961 -- Commit Summary -- * Schedule route request to be executed later if sidebar is not loaded * Enable endpoint listeners before sidebar finishes loading -- File Changes -- M app/assets/javascripts/index/directions.js (32) -- Patch Links -- https://github.com/openstreetmap/openstreetmap-website/pull/5961.patch https://github.com/openstreetmap/openstreetmap-website/pull/5961.diff -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5961 You are receiving this because you are subscribed to this thread. Message ID: <openstreetmap/openstreetmap-website/pull/5...@github.com>
_______________________________________________ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev