[openstreetmap/openstreetmap-website] Fix directions panel re-submit after closing resultsFix directions panel re-submit after closing results (PR #6951)

laasyapriya-code notifications at github.com
Tue Mar 31 12:43:35 UTC 2026


When the directions results panel is closed, the sidebar was always 
     hidden via setSidebarOverlaid(true). This prevented users from 
     re-submitting the route by pressing Enter.
     
     Fixed by only overlaying the sidebar if endpoints are missing, 
     matching the same logic used on page load.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/6951?email_source=notifications&email_token=AAK2OLLDZ27TPS2FH2AVPDD4TO4PPA5CNFSNUABEM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UF4ZTINZRHA4TIOBTHGTHEZLBONXW5KTTOVRHGY3SNFRGKZFFMV3GK3TUVVYHEX3POBSW4X3DNRUWG2Y

-- Commit Summary --

  * Fix directions panel re-submit after closing results

-- File Changes --

    M app/assets/javascripts/index/directions.js (2)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/6951.patch?email_source=notifications&email_token=AAK2OLLNG3TYRJH7QPTXDAD4TO4PPA5CNFSNUABEM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UF4ZTINZRHA4TIOBTHGTHEZLBONXW5KTTOVRHGY3SNFRGKZFFMV3GK3TUVZYHEX3QMF2GG2C7MNWGSY3Lhttps://github.com/openstreetmap/openstreetmap-website/pull/6951.diff?email_source=notifications&email_token=AAK2OLJZABWHTETCUB2D7VD4TO4PPA5CNFSNUABEM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UF4ZTINZRHA4TIOBTHGTHEZLBONXW5KTTOVRHGY3SNFRGKZFFMV3GK3TUVVYHEX3ENFTGMX3DNRUWG2Y
-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6951
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6951 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260331/c5008f6c/attachment.htm>


More information about the rails-dev mailing list