Select to view content in your preferred language

MapView focus on page load

981
3
09-10-2019 08:46 PM
by Anonymous User
Not applicable

Hi there,

Strange problem: I have a web app and the DOM order goes as follows:

1. Sidebar/menu

2. MapView

3. Widgets

When I load the page and tab through the page, the focus skips number 1 in the order and goes straight to the MapView and carries on from there. I have tried forcing the order using tabindex and so on, but still it happens.

Is it built in somewhere in the MapView that it is focused first perchance? I'm not sure if it is the MapView doing it or not, so trying to narrow down where it's happening.

Thanks,

Alex

0 Kudos
3 Replies
by Anonymous User
Not applicable

Is it possible to share the URL of your web app? Or you can direct message me. I can take a look.

0 Kudos
by Anonymous User
Not applicable

Hi Tao, That would be great - I can't direct message you as we are not connected?

0 Kudos
by Anonymous User
Not applicable

To anyone wondering - this was due to the way we had implemented Reach Router for our app. It was the router automatically focussing the first thing that changed on load, and in this case it was an empty div, and that's why we got mixed up!

Thanks so much for your help Tao!