I'm trying to improve accessibility in my existing app and I've noticed that when my route changes the browser focus remains unchanged. My expectation was for the focus to be back in the first element on the page so that I can take advantage of skip links and things like that.
Question: is there a way to reset the browser focus (emulating a page refresh) using react-router?
UPDATE 1:
I tried adding document.activeElement.blur()
which seems to help, but is not working in Chrome.
UPDATE 2:
Actually even after removing document.activeElement.blur()
it seems to work in Safari. I wonder if this is something related to browserHistory from react-router