Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write directions sidebar header using .erb template #4900

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AntonKhorev
Copy link
Collaborator

@AntonKhorev AntonKhorev commented Jun 15, 2024

Other sidebar pages have at least a heading and some placeholder in their .html.erb template, for example geocoder search. Directions search is the exception, it's template is essentially empty. Instead everything is written by directions.js.

Here I'm moving the directions heading to .html.erb. Actually I'm doing this to add more things to .html.erb later. Preview: #4901.

@AntonKhorev AntonKhorev marked this pull request as draft June 15, 2024 11:36
@AntonKhorev
Copy link
Collaborator Author

I should try to enable/disable the form input listeners first. Then all of the loading could be done in load/popstate methods.

@AntonKhorev
Copy link
Collaborator Author

I have endpoint.remove() in #5064. I can rename it to disable, add enable, enable the listeners from enable, remove them in disable.

@AntonKhorev AntonKhorev marked this pull request as ready for review August 19, 2024 16:50
@AntonKhorev AntonKhorev marked this pull request as draft August 19, 2024 17:41
@AntonKhorev
Copy link
Collaborator Author

I did the thing above but there's still blinking caused by OSM.loadSidebarContent messing with map.setSidebarOverlaid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant