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

'onWindowResize' is not a function #118

Open
roberttolton opened this issue Aug 29, 2024 · 0 comments
Open

'onWindowResize' is not a function #118

roberttolton opened this issue Aug 29, 2024 · 0 comments

Comments

@roberttolton
Copy link

Hi, thanks for your work on this package.

When running the hide method, an error is thrown:

TypeError: _this._events.onWindowResize is not a function

It looks like the only place onWindowResize is initialised is if refreshOnResize is set to true in the options, so the code should probably check first if onWindowResize is defined before calling it?

Although also note that even if you provide refreshOnResize: true in the options (which is default true anyway..), the hide method still throws this error, so something odd is going on.

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

No branches or pull requests

1 participant