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
I've already tried this:
app.use(VueLazyload, { preload: 1, error: LAZY_ERROR, loading: LAZY_LOADING, attempt: 3, dispatchEvent: true, adapter: { error(listener, Init) { console.log(listener); }, }, });
but in arguments of error adapter I found no way to stop it.
and I also tried to add @error="errorHandler" to the <img> element. I can catch the event, but e.preventDefault() has no use:
@error="errorHandler"
<img>
e.preventDefault()
const errorHandler = (e: CustomEvent<any>) => { e.preventDefault(); console.log(e) } // the type of 'e' is 'ReactiveListener'
currently using vue 3.2.37, vue-lazyload 3.0.0-rc.2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I've already tried this:
but in arguments of error adapter I found no way to stop it.
and I also tried to add
@error="errorHandler"
to the<img>
element. I can catch the event, bute.preventDefault()
has no use:currently using vue 3.2.37, vue-lazyload 3.0.0-rc.2
The text was updated successfully, but these errors were encountered: