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

b-image custom-class does not get applied to img tag #3571

Closed
scheinercc opened this issue Nov 3, 2021 · 1 comment
Closed

b-image custom-class does not get applied to img tag #3571

scheinercc opened this issue Nov 3, 2021 · 1 comment

Comments

@scheinercc
Copy link

Overview of the problem

Buefy version: 0.9.10 && 0.9.11
Vuejs version: 2.6.14
OS/Browser: macOS, Firefox 95.0b2

Description

b-image custom-class does not get applied to img tag

Steps to reproduce

Create new image

<b-image :alt="[my alt text]" :src="[my img src]" custom-class="my-custom-image-class" />

Expected behavior

The rendered DOM should be:

<figure data-v-[id]="" class="b-image-wrapper image">
  <img src="[my img src]" alt="[my img alt]" loading="lazy" class="my-custom-image-class" width="[some width]">
</figure>

Actual behavior

The DOM rendered:

<figure data-v-[id]="" class="b-image-wrapper image" custom-class="my-custom-image-class">
  <img src="[my img src]" alt="[my img alt]" loading="lazy" class="" width="[some width]">
</figure>
@jtommy jtommy closed this as completed in 2a0d126 Nov 8, 2021
@scheinercc
Copy link
Author

Thanks!

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