We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6ad774 commit 5c2507aCopy full SHA for 5c2507a
src/directives/observe-visibility.js
@@ -30,7 +30,7 @@ class VisibilityState {
30
}
31
// Throttle
32
if (this.callback && this.options.throttle) {
33
- const { leading } = this.options.throttleOptions
+ const { leading } = this.options.throttleOptions || {}
34
this.callback = throttle(this.callback, this.options.throttle, {
35
leading: (state) => {
36
return leading === 'both' || (leading === 'visible' && state) || (leading === 'hidden' && !state)
0 commit comments