Skip to content
New issue

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

fix(theme-default): fix Uncaught TypeError when click a page #196

Merged
merged 1 commit into from Mar 27, 2021
Merged

Conversation

azu
Copy link
Member

@azu azu commented Mar 27, 2021

Currently, click body and throw an Error.

Uncaught TypeError: ((ke.event.special[i.origType] || {}).handle || i.handler).apply is not a function
    at HTMLDivElement.dispatch (theme.js:2)
    at HTMLDivElement.v.handle (theme.js:2)

This PR fixes it.

use native .focus({ preventScroll :true }) instead of jQuery.
It seems that jQuery does not support preventScroll.

fix #191
refs #135

@azu
Copy link
Member Author

azu commented Mar 27, 2021

Mar-27-2021.13-34-21.mp4

@azu azu merged commit 349aae6 into master Mar 27, 2021
@azu azu deleted the fix/191 branch March 27, 2021 04:39
@azu azu mentioned this pull request Mar 27, 2021
dogatana added a commit to dogatana/honkit-plugin-theme-default-fa5 that referenced this pull request Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uncaught TypeError when click a page
1 participant