Patch Changes
-
Add crossorigin attribute support to x-image component (#1340)
- Added
crossorigin
to theobservedAttributes
array inImageSrc.ts
- Implemented
#handleCrossorigin
handler using thebindToAttribute
helper to forward the crossorigin attribute from the custom element to the internal<img>
element - Added comprehensive test coverage to verify the attribute is properly passed through to the shadow DOM
This enables CORS-enabled image loading when using
<x-image crossorigin="anonymous">
or similar configurations. - Added
-
Updated dependencies []:
- @lynx-js/web-elements-template@0.8.2