unpic-img icon indicating copy to clipboard operation
unpic-img copied to clipboard

[Vue] Breakpoints attribute seems to be leaking to img node

Open dbismut opened this issue 6 months ago • 0 comments

Hi, thanks for this wonderful package!

Describe the bug The breakpoints attribute leaks to the img node in Vue.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://stackblitz.com/edit/vitejs-vite-qwwlj8bp?file=package.json,src%2FApp.vue&terminal=dev
  2. Inspect img node
  3. See the breakpoints attribute in the DOM

Expected behavior Breakpoints shouldn't leak to the img node.

Screenshots Image

I might be wrong, but breakpoints seem to be missing from the typescript props, hence the leaking.

  • https://github.com/ascorbic/unpic-img/blob/b71619f7353c3cef29ecfb836bb78246476c0a42/packages/vue/src/base/image.vue#L10
  • https://github.com/ascorbic/unpic-img/blob/b71619f7353c3cef29ecfb836bb78246476c0a42/packages/vue/src/base/source.vue#L10
  • https://github.com/ascorbic/unpic-img/blob/b71619f7353c3cef29ecfb836bb78246476c0a42/packages/vue/src/image.vue#L9
  • https://github.com/ascorbic/unpic-img/blob/b71619f7353c3cef29ecfb836bb78246476c0a42/packages/vue/src/source.vue#L9

dbismut avatar Jun 12 '25 20:06 dbismut