@jakearchibald perhaps you can spot why.... I could not really figure out :/
When info icon is clicked, we keep the focus reference so that we can focus back to the info icon when user close the dialog. This used to work, but somehow on current master it doesn't.
_onSettingsCloseClick is being called & previousFocus reference is correct, but somehow .focus() is not taking effect.
@jakearchibald perhaps you can spot why.... I could not really figure out :/
When info icon is clicked, we keep the focus reference so that we can focus back to the info icon when user close the dialog. This used to work, but somehow on current master it doesn't.
_onSettingsCloseClick
is being called &previousFocus
reference is correct, but somehow.focus()
is not taking effect.https://github.com/GoogleChromeLabs/proxx/blob/master/src/services/preact-canvas/index.tsx#L358-L361