bootstrap-vue icon indicating copy to clipboard operation
bootstrap-vue copied to clipboard

Access to onerror event for <b-card-img>

Open m-mohr opened this issue 3 years ago • 4 comments

Is your feature request related to a problem? Please describe...

It would be nice if I could access the img-tags onerror event for the b-card-img component

Describe the solution you'd like

A @error listener/event for the b-card-img component

Describe alternatives you've considered

Some weird DOM manipulation, but that's really not how it should work.

m-mohr avatar Jul 08 '22 21:07 m-mohr

Since <b-card-img> has the <img> tag as its root, the event should work as-is already.

Hiws avatar Jul 09 '22 13:07 Hiws

Thanks, that works indeed. So this is not actually a feature request but instead a suggestion to improve the documentation. :-)

m-mohr avatar Jul 10 '22 11:07 m-mohr

This doesn't seem to work with the lazy alternatives, right? Would be great, if this would also work on these.

m-mohr avatar Feb 06 '23 14:02 m-mohr

This doesn't seem to work with the lazy alternatives, right? Would be great, if this would also work on these.

Looks like you might need to use the .native modifier on the event to get it to work on <b-card-img-lazy>

Hiws avatar Feb 06 '23 15:02 Hiws