[openstreetmap/openstreetmap-website] make sure iD's iframe is focused on startup (PR #6083)

Tom Hughes notifications at github.com
Wed Jun 4 17:35:39 UTC 2025


@tomhughes commented on this pull request.



> @@ -7,5 +7,5 @@
      data[:zoom] = @zoom if @zoom
      data[:gpx] = trace_data_url(params[:gpx], :format => :xml) if params[:gpx]
      data[:url] = id_url(:locale => params[:locale]) %>
-  <%= tag.iframe "", :frameBorder => 0, :id => "id-embed", :class => "w-100 h-100", :allowfullscreen => "", :data => data %>
+  <%= tag.iframe "", :frameBorder => 0, :id => "id-embed", :class => "w-100 h-100", :allowfullscreen => true, :autofocus => true, :data => data %>

Thanks - can you squash the commits together please and then I'll merge this.

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

Message ID: <openstreetmap/openstreetmap-website/pull/6083/review/2897567569 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250604/0d6e38a6/attachment.htm>


More information about the rails-dev mailing list