[openstreetmap/openstreetmap-website] Focus first endpoint when routing is activated (PR #6042)

Marwin Hochfelsner notifications at github.com
Fri May 23 13:26:39 UTC 2025


@hlfan commented on this pull request.



> @@ -216,6 +216,8 @@ OSM.Directions = function (map) {
 
     endpoints[0].enableListeners();
     endpoints[1].enableListeners();
+
+    endpoints[0].focusInput();

Well then how about focusing only when reasonable?
```suggestion
    if (!endpoints[0].value) endpoints[0].focusInput();
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6042#pullrequestreview-2864414567
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6042/review/2864414567 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250523/84949e11/attachment.htm>


More information about the rails-dev mailing list