We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
スムーススクロール後にフォーカスが移動元のままになっている。 以下のように、移動先の要素にフォーカスを移動させる。
// スクロール先要素にフォーカスを変更する after(offset, $trigger, scrollElement) { const destination = document.getElementById(scrollElement.ctx.hash.replace('#', '')); destination.setAttribute('tabindex', '-1'); destination.focus(); },
// body要素にフォーカスを変更する after() { const destination = document.getElementsByTagName('body')[0]; destination.setAttribute('tabindex', '-1'); destination.focus(); },
The text was updated successfully, but these errors were encountered:
Improve: スムーススクロール後にフォーカスを移動する
2003b94
#285
Merge pull request #293 from manabuyasuda/#285
cb10611
No branches or pull requests
スムーススクロール後にフォーカスが移動元のままになっている。
以下のように、移動先の要素にフォーカスを移動させる。
The text was updated successfully, but these errors were encountered: