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

Missing cross origin prop in avatar image #3312

Open
naquiroz opened this issue Jan 6, 2025 · 1 comment
Open

Missing cross origin prop in avatar image #3312

naquiroz opened this issue Jan 6, 2025 · 1 comment

Comments

@naquiroz
Copy link

naquiroz commented Jan 6, 2025

Bug report

Current Behavior

When passing crossorigin='anonymous' to avatar image, this is not considered in the creation of the image to check the status.

Expected behavior

The function useImageLoadingStatus should take into account the cross origin value, if passed. My images fail to load due to this.

Reproducible example

-- None

Suggested solution

change the signature of useImageLoadingStatus to receive the crossOrigin as value, so that it is considered when instantiating the image.

Additional context

Your environment

Software Name(s) Version
Radix Package(s) "@radix-ui/react-avatar" "^1.1.2"
React n/a 19
Browser Arc
Assistive tech
Node n/a
npm/yarn
Operating System Macos
@naquiroz
Copy link
Author

naquiroz commented Jan 6, 2025

Can be solved with #3261

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