unpic-img
unpic-img copied to clipboard
[Vue] Breakpoints attribute seems to be leaking to img node
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:
- Go to https://stackblitz.com/edit/vitejs-vite-qwwlj8bp?file=package.json,src%2FApp.vue&terminal=dev
- Inspect img node
- See the breakpoints attribute in the DOM
Expected behavior Breakpoints shouldn't leak to the img node.
Screenshots
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